gatesn opened a new issue, #13325: URL: https://github.com/apache/datafusion/issues/13325
### Describe the bug The function [can_coerce_from](https://docs.rs/datafusion/latest/datafusion/logical_expr/type_coercion/functions/fn.can_coerce_from.html) establishes the lossless conversions between data types. It currently says that LargeUtf8 can be coerced into Utf8. I'm not sure this should be true? https://github.com/apache/datafusion/blob/0f584c8db1d9c36d8f73818d8bee24384eb4926e/datafusion/expr/src/type_coercion/functions.rs#L768-L769 I suppose I could construct a single row that contains more than i32 bytes of string data. But it also seems generally desirable for DataFusion to promote to the large string/binary type? ### To Reproduce _No response_ ### Expected behavior Utf8 promotes into LargeUt8, but not vice versa. ### 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]
