cyberbeam524 commented on code in PR #27788:
URL: https://github.com/apache/datafusion/pull/27788#discussion_r4735110159


##########
datafusion/optimizer/src/analyzer/type_coercion.rs:
##########
@@ -1649,6 +1649,40 @@ fn coerce_case_expression(
     Ok(Case::new(case_expr, when_then, else_expr))
 }
 
+/// Rejects UNION inputs whose extension type cannot be kept on the coerced
+/// storage type `coerced`.
+///
+/// TODO(#27383): replace with an extension-aware common type rule.
+fn check_union_extension_type(

Review Comment:
   Good catch on the count(*) and INSERT regressions in 56.0.0, aligning the 
logical schema with the physical union instead of erroring is much cleaner. 
I've applied the diff (including arrow-schema in Cargo.toml & Cargo.lock), 
updated the tests, and changed the PR description. Local datafusion-optimizer 
tests, sql_extension_types.slt, clippy, and cargo doc are all passing. Ready 
for another look!



-- 
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]

Reply via email to