Skip to content

Commit 8ed2fd7

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

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-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+
+---------------------+-----------------+--------------+-------------------+

0 commit comments

Comments
 (0)