Skip to content

Commit 5fac581

Browse files
authored
Add cast array test to sqllogictest (#10474)
1 parent 230c68c commit 5fac581

File tree

1 file changed

+13
-0
lines changed
  • datafusion/sqllogictest/test_files

1 file changed

+13
-0
lines changed

datafusion/sqllogictest/test_files/cast.slt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,16 @@ query I
5656
SELECT 10::bigint unsigned
5757
----
5858
10
59+
60+
# cast array
61+
query ?
62+
SELECT CAST(MAKE_ARRAY(1, 2, 3) AS VARCHAR[])
63+
----
64+
[1, 2, 3]
65+
66+
67+
# cast empty array
68+
query ?
69+
SELECT CAST(MAKE_ARRAY() AS VARCHAR[])
70+
----
71+
[]

0 commit comments

Comments
 (0)