Skip to content

Commit

Permalink
Add cast array test to sqllogictest
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed May 12, 2024
1 parent 8cc92a9 commit 94dc4cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions datafusion/sqllogictest/test_files/cast.slt
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,16 @@ query I
SELECT 10::bigint unsigned
----
10

# cast array
query ?
SELECT CAST(MAKE_ARRAY(1, 2, 3) AS VARCHAR[])
----
[1, 2, 3]


# cast empty array
query ?
SELECT CAST(MAKE_ARRAY() AS VARCHAR[])
----
[]

0 comments on commit 94dc4cd

Please sign in to comment.