Skip to content

Commit 97f71c5

Browse files
committed
[SPARK-52269] Add cast SQL test and answer file
1 parent c34744b commit 97f71c5

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT 'true'::boolean, 1::string, '1'::int, '3.14'::float
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+---------------------+-----------------+--------------+-------------------+
2+
|CAST(true AS BOOLEAN)|CAST(1 AS STRING)|CAST(1 AS INT)|CAST(3.14 AS FLOAT)|
3+
+---------------------+-----------------+--------------+-------------------+
4+
| true| 1| 1| 3.14|
5+
+---------------------+-----------------+--------------+-------------------+

Tests/SparkConnectTests/SQLTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ struct SQLTests {
8383
let queriesForSpark4Only: [String] = [
8484
"create_scala_function.sql",
8585
"create_table_function.sql",
86+
"cast.sql",
8687
"pipesyntax.sql",
8788
"explain.sql",
8889
]

0 commit comments

Comments
 (0)