File tree 2 files changed +10
-2
lines changed
sqllogictest/test_files/string
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,11 @@ impl Default for BitLengthFunc {
40
40
impl BitLengthFunc {
41
41
pub fn new ( ) -> Self {
42
42
Self {
43
- signature : Signature :: string ( 1 , Volatility :: Immutable ) ,
43
+ signature : Signature :: uniform (
44
+ 1 ,
45
+ vec ! [ DataType :: Utf8 , DataType :: LargeUtf8 ] ,
46
+ Volatility :: Immutable ,
47
+ ) ,
44
48
}
45
49
}
46
50
}
Original file line number Diff line number Diff line change @@ -91,7 +91,11 @@ select octet_length(column1_utf8view) from test;
91
91
7
92
92
NULL
93
93
94
- query error DataFusion error: Arrow error: Compute error: bit_length not supported for Utf8View
94
+ # query error DataFusion error: Arrow error: Compute error: bit_length not supported for Utf8View
95
+ # TODO: our patched DF branch is passing this test.
96
+ # It does register the type as Utf8View, if I we leave the bit_length signature to accept all strings.
97
+ # if we update the bit_length signature to only accepts non-view Utf8, it then coerces to LargeUtf8 and passes.
98
+ statement ok
95
99
select bit_length(column1_utf8view) from test;
96
100
97
101
query T
You can’t perform that action at this time.
0 commit comments