Commit cc67c13
Fix: allow coercion from Binary and LargeBinary into BinaryView (#21800)
## Which issue does this PR close?
- Closes #21798
## Rationale for this change
The coercion should take place in the same way as is foreseen already
for the string datatypes (Utf8, LargeUtf8, Null -> Utf8View)
## What changes are included in this PR?
The coerced_from function in
datafusion/expr/src/type_coercion/functions.rs was missing a match arm
for (BinaryView, Binary | LargeBinary | Null).
## Are these changes tested?
Additional unit test written : `test_binary_conversion`
## Are there any user-facing changes?
No
Co-authored-by: Bert Vermeiren <bert.vermeiren@datadobi.com>1 parent 14c18ec commit cc67c13
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
| 891 | + | |
| 892 | + | |
891 | 893 | | |
892 | 894 | | |
893 | 895 | | |
| |||
956 | 958 | | |
957 | 959 | | |
958 | 960 | | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
959 | 975 | | |
960 | 976 | | |
961 | 977 | | |
| |||
0 commit comments