You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
push_down_leaf_projections fails for self joins in some scenarios #24241
Some special shapes of queries, namely self joins on structs/json data trip up the push down leaf expressions optimiser.
To Reproduce
From datafusion-cli:
CREATETABLEtASSELECT named_struct('a', 'x', 'b', 'y') AS s, 1AS id;
SELECTp.s['a'], count(1)
FROM t p
LEFT JOIN t c ONp.id=c.idWHEREc.s['b'] IS NOT NULLGROUP BY1;
Will produce:
Optimizer rule 'push_down_leaf_projections' failed
caused by
Schema error: Schema contains qualified field name p.__datafusion_extracted_1
and unqualified field name __datafusion_extracted_1 which would be ambiguous
Activity
Fix self join leaf expressions (apache#24242)
test: differential fuzz for leaf expression pushdown and parquet filt…
test: differential fuzz for leaf expression pushdown and parquet filt…