-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
As written, the test assertion in
datafusion/datafusion/substrait/tests/cases/logical_plans.rs
Lines 46 to 50 in 1fce2a9
| assert_eq!( | |
| format!("{}", plan), | |
| "Projection: NOT DATA.a AS EXPR$0\ | |
| \n TableScan: DATA projection=[a, b, c, d, e, f]" | |
| ); |
should fail because DataFusion registers the
data table with 5 fields [a, b, c, d, e] but the schema for the table in the Substrait plan only has a single field [D].
To Reproduce
No response
Expected behavior
DataFusion should reject Substrait plans in which NamedScan schemas do not match the corresponding table that is is registered.
Additional context
Generally speaking, if the plan consumer (DataFusion) and the producer do not agree on column names and types, it is unlikely that execution will be meaningful.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working