File tree 2 files changed +27
-0
lines changed
datafusion/sqllogictest/test_files/string
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -1096,3 +1096,20 @@ Rapha Raphael NULL datafusionДатаФус datafusionДатаФусион NULL
1096
1096
und under_score NULL un iść core un iść core NULL
1097
1097
p percent NULL pan Tadeusz ma iść w kąt pan Tadeusz ma iść w kąt NULL
1098
1098
NULL NULL NULL NULL NULL NULL
1099
+
1100
+ # TODO: Support Utf8View for bit_length array string function
1101
+ # --------------------------------------
1102
+ # Test BIT_LENGTH
1103
+ # --------------------------------------
1104
+ # query II
1105
+ # SELECT
1106
+ # BIT_LENGTH(ascii_1),
1107
+ # BIT_LENGTH(unicode_1)
1108
+ # FROM test_basic_operator;
1109
+ # ----
1110
+ # 48 144
1111
+ # 72 176
1112
+ # 56 240
1113
+ # 88 104
1114
+ # 56 216
1115
+ # NULL NULL
Original file line number Diff line number Diff line change @@ -91,6 +91,16 @@ select octet_length(column1_utf8view) from test;
91
91
7
92
92
NULL
93
93
94
+ query IIII
95
+ SELECT
96
+ BIT_LENGTH(arrow_cast('Andrew', 'Utf8View')),
97
+ BIT_LENGTH(arrow_cast('datafusion数据融合', 'Utf8View')),
98
+ BIT_LENGTH(arrow_cast('💖', 'Utf8View')),
99
+ BIT_LENGTH(arrow_cast('josé', 'Utf8View'))
100
+ ;
101
+ ----
102
+ 48 176 32 40
103
+
94
104
query error DataFusion error: Arrow error: Compute error: bit_length not supported for Utf8View
95
105
select bit_length(column1_utf8view) from test;
96
106
You can’t perform that action at this time.
0 commit comments