jayzhan211 commented on code in PR #11989: URL: https://github.com/apache/datafusion/pull/11989#discussion_r1717145616
########## datafusion/core/src/physical_planner.rs: ########## @@ -670,6 +670,10 @@ impl DefaultPhysicalPlanner { let input_exec = children.one()?; let physical_input_schema = input_exec.schema(); let logical_input_schema = input.as_ref().schema(); + let physical_input_schema_from_logical: Arc<Schema> = + logical_input_schema.as_ref().clone().into(); + + debug_assert_eq!(physical_input_schema_from_logical, physical_input_schema, "Physical input schema should be the same as the one converted from logical input schema. Please file an issue or send the PR"); Review Comment: The main goal of the change is to ensure they are the same. And, we pass `physical_input_schema` through to the function that require input's schema. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org