SYMPTOM
In Strategy 9.x-10.x, it is noticed that after enabling the VLDB property: Query Optimization > Apply Filter Options > Apply filter to passes touching warehouse tables and last join pass, filter to the last join pass is using fact table instead of lookup table.
In the warehouse touching pass, filter is using lookup table table_2; in the last join pass, filter is using temp table result ZZMD00 pa11 and ZZMD01 pa12 instead of the lookup table.
insert into ZZMD00 select a14.A_DESC A, Sum(a11.B) WJXBFS1 from table_1 a11 join table_2 a14 on (a11.B_ID = a14.B_ID) where (a14.A_ID in (3, 2, 4, 1)
select coalesce (pa11. A_DESC , pa12. A_DESC ) A, pa11.WJXBFS1 WJXBFS1, pa12.WJXBFS1 WJXBFS2 from ZZMD00 pa11 full outer join ZZMD01 pa12 on (pa11.CD_MD_MERCADO = pa12.CD_MD_MERCADO and where (coalesce(pa11.A_ID, pa12.A_ID) in (3, 2, 4, 1)
insert into ZZMD00 select a14.A_DESC A, Sum(a11.B) WJXBFS1 from table_1 a11 join table_2 a14 on (a11.B_ID = a14.B_ID) where (a14.A_ID in (3, 2, 4, 1)
select coalesce (pa11. A_DESC , pa12. A_DESC ) A, pa11.WJXBFS1 WJXBFS1, pa12.WJXBFS1 WJXBFS2 from ZZMD00 pa11 full outer join ZZMD01 pa12 on pa11.CD_MD_MERCADO = pa12.CD_MD_MERCADO join table_2 a14 on (a11.B_ID = a14.B_ID) where a14.A_ID in (3, 2, 4, 1)