We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa50636 commit 264523bCopy full SHA for 264523b
datafusion/sqllogictest/test_files/string_view.slt
@@ -322,6 +322,23 @@ logical_plan
322
03)----TableScan: test projection=[column1_utf8, column2_utf8, column1_utf8view]
323
324
325
+# Ensure string functions use native StringView implementation
326
+# and do not fall back to Utf8 or LargeUtf8
327
+# Should see no casts to Utf8 in the plans below
328
+
329
+query TT
330
+EXPLAIN SELECT
331
+ column1_utf8view like 'foo' as "like",
332
+ column1_utf8view ilike 'foo' as "ilike"
333
+FROM test;
334
+----
335
+logical_plan
336
+01)Projection: test.column1_utf8view LIKE Utf8View("foo") AS like, test.column1_utf8view ILIKE Utf8View("foo") AS ilike
337
+02)--TableScan: test projection=[column1_utf8view]
338
339
340
341
342
statement ok
343
drop table test;
344
0 commit comments