File tree 2 files changed +19
-0
lines changed
expr-common/src/type_coercion
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1052,12 +1052,16 @@ fn binary_to_string_coercion(
1052
1052
match ( lhs_type, rhs_type) {
1053
1053
( Binary , Utf8 ) => Some ( Utf8 ) ,
1054
1054
( Binary , LargeUtf8 ) => Some ( LargeUtf8 ) ,
1055
+ ( BinaryView , Utf8 ) => Some ( Utf8View ) ,
1056
+ ( BinaryView , LargeUtf8 ) => Some ( LargeUtf8 ) ,
1055
1057
( LargeBinary , Utf8 ) => Some ( LargeUtf8 ) ,
1056
1058
( LargeBinary , LargeUtf8 ) => Some ( LargeUtf8 ) ,
1057
1059
( Utf8 , Binary ) => Some ( Utf8 ) ,
1058
1060
( Utf8 , LargeBinary ) => Some ( LargeUtf8 ) ,
1061
+ ( Utf8 , BinaryView ) => Some ( Utf8View ) ,
1059
1062
( LargeUtf8 , Binary ) => Some ( LargeUtf8 ) ,
1060
1063
( LargeUtf8 , LargeBinary ) => Some ( LargeUtf8 ) ,
1064
+ ( LargeUtf8 , BinaryView ) => Some ( LargeUtf8 ) ,
1061
1065
_ => None ,
1062
1066
}
1063
1067
}
Original file line number Diff line number Diff line change @@ -200,3 +200,18 @@ NULL R NULL NULL NULL NULL
200
200
201
201
statement ok
202
202
drop table test;
203
+
204
+ statement ok
205
+ create table bv as values
206
+ (
207
+ arrow_cast('one', 'BinaryView'),
208
+ arrow_cast('two', 'BinaryView')
209
+ );
210
+
211
+ query B
212
+ select column1 like 'o%' from bv;
213
+ ----
214
+ true
215
+
216
+ statement ok
217
+ drop table bv;
You can’t perform that action at this time.
0 commit comments