-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
| // 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working