The filters
expressions in TableScan
may contain fields not included in schema
.
#4793
Labels
bug
Something isn't working
Describe the bug
A clear and concise description of what the bug is.
https://github.com/apache/arrow-datafusion/blob/54ae4323a730a4a34c6b5f638e2083f0c3fe5dcc/datafusion/expr/src/logical_plan/plan.rs#L1396-L1409
The
Expr
s infilter
may contain fields which are not included inschema
. This can cause the logical optimizer failing.To Reproduce
Set
skip_failing_rules
to false, and run the testfilter_pushdown_view
.The logical optimizer will fail and the error message says:
The failure is caused by that the schema of
TableScan
doesn't include the fields infilters
:Expected behavior
The optimizer should not fail.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: