kazuyukitanimura opened a new issue, #12843: URL: https://github.com/apache/datafusion/issues/12843
### Describe the bug https://github.com/apache/datafusion/pull/12753/files#diff-f1e354d4fe26237064d8194e10a6008efa4f88e2b68b8a8352086a5d011180b8R108 introduced to use `type_union_resolution`; however, this caused a regression on `coerce_types` against Array of Structs. `type_union_resolution` returns `None` for such cases and let the plan fail. ### To Reproduce Found at https://github.com/apache/datafusion-comet/pull/1001#issuecomment-2403621922 ### Expected behavior The fix seems to be easy. We just need to addd ``` .or_else(|| struct_coercion(lhs_type, rhs_type)) ``` at the end of `type_union_resolution_coercion` Then, `type_union_resolution` returns `Some(...)` for Array of Structs. ### Additional context _No response_ -- 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]
