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
simonvandel
changed the title
Regression: Unneeded fields pushed to TableProvider if struct field is part of projection
Regression: Unneeded fields pushed to TableProvider if struct field is part of query
Jan 3, 2024
Though it seems like the logical plan has the correct projection (of just s) pushed down. I am not sure why that projection gets lost in the physical plan
I don't think so. ProjectionPushdown rule does not cover yet the relation between projections and ValuesExec. The plan is returned without modification.
I don't think so. ProjectionPushdown rule does not cover yet the relation between projections and ValuesExec. The plan is returned without modification.
I agree -- it seems like @haohuaijin 's fix #8774 is related to not handling all expression types correctly so I am not sure what caused this particular regression
Describe the bug
The following test works on Datafusion 33, but fails on 34:
Datafusion 34 fails this line
assert!(projection.unwrap().len() == 1);
becauseprojection
contains [1, 2].If I only select
col("s")
without accessing the fieldx
, the projection correctly only contains [1].To Reproduce
A testcase is provided above.
Expected behavior
I would expect the projection passed to TableProvider to only contain [1] as that is the only field needed in the query.
Additional context
No response
The text was updated successfully, but these errors were encountered: