Skip to content

Commit

Permalink
Minor: Add tests for StringView / character functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jul 31, 2024
1 parent fa50636 commit 264523b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions datafusion/sqllogictest/test_files/string_view.slt
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,23 @@ logical_plan
03)----TableScan: test projection=[column1_utf8, column2_utf8, column1_utf8view]


# Ensure string functions use native StringView implementation
# and do not fall back to Utf8 or LargeUtf8
# Should see no casts to Utf8 in the plans below

query TT
EXPLAIN SELECT
column1_utf8view like 'foo' as "like",
column1_utf8view ilike 'foo' as "ilike"
FROM test;
----
logical_plan
01)Projection: test.column1_utf8view LIKE Utf8View("foo") AS like, test.column1_utf8view ILIKE Utf8View("foo") AS ilike
02)--TableScan: test projection=[column1_utf8view]




statement ok
drop table test;

Expand Down

0 comments on commit 264523b

Please sign in to comment.