vbarua opened a new issue, #12223: URL: https://github.com/apache/datafusion/issues/12223
### Describe the bug As written, the test assertion in https://github.com/apache/datafusion/blob/1fce2a98ef9c7f8dbd7f3dedcaf4aa069ab92154/datafusion/substrait/tests/cases/logical_plans.rs#L46-L50 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](https://github.com/apache/datafusion/blob/1fce2a98ef9c7f8dbd7f3dedcaf4aa069ab92154/datafusion/substrait/tests/testdata/test_plans/select_not_bool.substrait.json#L35-L38) 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
