Skip to content

Commit

Permalink
Reorgnize the StringView tests in sqllogictests (#12572)
Browse files Browse the repository at this point in the history
* move the string function tests

* move the operator test

* add back the test for dictionary string
  • Loading branch information
goldmedal authored Sep 22, 2024
1 parent f6a0ed0 commit 7dc0151
Show file tree
Hide file tree
Showing 4 changed files with 1,036 additions and 1,093 deletions.
22 changes: 22 additions & 0 deletions datafusion/sqllogictest/test_files/string/string_literal.slt
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,25 @@ select
arrow_cast('Xiangpeng', 'Utf8View') <> arrow_cast('Andrew', 'Utf8View');
----
false true true true


query II
SELECT
ASCII('hello'),
ASCII(arrow_cast('world', 'Utf8View'))
----
104 119

query III
SELECT
ASCII(arrow_cast('äöüß', 'Utf8View')) as c1,
ASCII(arrow_cast('', 'Utf8View')) as c2,
ASCII(arrow_cast(NULL, 'Utf8View')) as c3
----
228 0 NULL

# coercion from stringview to integer, as input to make_date
query D
select make_date(arrow_cast('2024', 'Utf8View'), arrow_cast('01', 'Utf8View'), arrow_cast('23', 'Utf8View'))
----
2024-01-23
Loading

0 comments on commit 7dc0151

Please sign in to comment.