You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: datafusion/sqllogictest/test_files/string/string_view.slt
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -355,8 +355,9 @@ EXPLAIN SELECT
355
355
FROM test;
356
356
----
357
357
logical_plan
358
-
01)Projection: test.column1_utf8view LIKE Utf8("äöüß%") AS c1, CASE test.column1_utf8view IS NOT NULL WHEN Boolean(true) THEN Boolean(true) END AS c2, starts_with(test.column1_utf8view, Utf8View(NULL)) AS c3, starts_with(Utf8View(NULL), test.column1_utf8view) AS c4
359
-
02)--TableScan: test projection=[column1_utf8view]
358
+
01)Projection: __common_expr_1 LIKE Utf8View("äöüß%") AS c1, CASE __common_expr_1 IS NOT NULL WHEN Boolean(true) THEN Boolean(true) END AS c2, starts_with(test.column1_utf8view, Utf8View(NULL)) AS c3, starts_with(Utf8View(NULL), test.column1_utf8view) AS c4
359
+
02)--Projection: CAST(test.column1_utf8view AS Utf8View) AS __common_expr_1, test.column1_utf8view
360
+
03)----TableScan: test projection=[column1_utf8view]
360
361
361
362
## Test STARTS_WITH is rewitten to LIKE when the pattern is a constant
362
363
query TT
@@ -370,8 +371,9 @@ EXPLAIN SELECT
370
371
FROM test;
371
372
----
372
373
logical_plan
373
-
01)Projection: test.column1_utf8 LIKE Utf8("foo\%%") AS c1, test.column1_large_utf8 LIKE Utf8("foo\%%") AS c2, test.column1_utf8view LIKE Utf8("foo\%%") AS c3, test.column1_utf8 LIKE Utf8("f_o%") AS c4, test.column1_large_utf8 LIKE Utf8("f_o%") AS c5, test.column1_utf8view LIKE Utf8("f_o%") AS c6
374
-
02)--TableScan: test projection=[column1_utf8, column1_large_utf8, column1_utf8view]
374
+
01)Projection: test.column1_utf8 LIKE Utf8("foo\%%") AS c1, __common_expr_1 LIKE LargeUtf8("foo\%%") AS c2, __common_expr_2 LIKE Utf8View("foo\%%") AS c3, test.column1_utf8 LIKE Utf8("f_o%") AS c4, __common_expr_1 LIKE LargeUtf8("f_o%") AS c5, __common_expr_2 LIKE Utf8View("f_o%") AS c6
375
+
02)--Projection: CAST(test.column1_large_utf8 AS LargeUtf8) AS __common_expr_1, CAST(test.column1_utf8view AS Utf8View) AS __common_expr_2, test.column1_utf8
376
+
03)----TableScan: test projection=[column1_utf8, column1_large_utf8, column1_utf8view]
375
377
376
378
## Test STARTS_WITH works with column arguments
377
379
query TT
@@ -940,7 +942,7 @@ EXPLAIN SELECT
940
942
FROM test;
941
943
----
942
944
logical_plan
943
-
01)Projection: test.column1_utf8view LIKE Utf8("foo%") AS c, starts_with(test.column1_utf8view, test.column2_utf8view) AS c2
945
+
01)Projection: CAST(test.column1_utf8view AS Utf8View) LIKE Utf8View("foo%") AS c, starts_with(test.column1_utf8view, test.column2_utf8view) AS c2
944
946
02)--TableScan: test projection=[column1_utf8view, column2_utf8view]
0 commit comments