Describe the bug
The function can_coerce_from 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?
|
// Any type can be coerced into strings |
|
(Utf8 | LargeUtf8, _) => Some(type_into.clone()), |
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
Describe the bug
The function can_coerce_from 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?
datafusion/datafusion/expr/src/type_coercion/functions.rs
Lines 768 to 769 in 0f584c8
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