Brijesh-Thakkar commented on PR #22640: URL: https://github.com/apache/datafusion/pull/22640#issuecomment-4656659930
> could we perhaps mock an end to end example that highlights the issue this is fixing? one that fails on main but would succeed with this fix Added test_recompute_schema_union_after_input_rewrite which uses TreeNode::transform to simulate what an optimizer pass does , it rewrites all TableScan leaves to use Int64 types while leaving the Union's cached schema as Int32, then calls recompute_schema() and asserts the schema updated correctly. This mirrors the exact pattern used by type_coercion and optimize_projections. -- 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]
