Skip to content

Commit 5511c4b

Browse files
committed
[SPARK-51521] Add integral/floating/string/date type test and answer files
### What changes were proposed in this pull request? This PR aims to add `integral/floating/string/date` type test and answer files. ### Why are the changes needed? To provide a test coverage for these types. During testings, it turns out `decimal` and `timestamp` type has some issues. It will be added. ### Does this PR introduce _any_ user-facing change? No, this is a test-only change. ### How was this patch tested? Pass the CIs and manual tests. ``` $ swift test --filter SQLTests ... 􀟈 Suite SQLTests started. 􀟈 Test runAll() started. date.sql floating.sql integral.sql pipesyntax.sql select.sql string.sql 􁁛 Test runAll() passed after 0.191 seconds. 􁁛 Suite SQLTests passed after 0.191 seconds. 􁁛 Test run with 1 test passed after 0.191 seconds. ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #19 from dongjoon-hyun/SPARK-51521. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 0e1e9d1 commit 5511c4b

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT DATE '2025-03-15'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[["2025-03-15 00:00:00 +0000"]]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SELECT
2+
1.0F, -2.0F,
3+
3.0D, -4.0D,
4+
float('inf'), float('NaN'),
5+
double('inf'), double('NaN')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[["1.0","-2.0","3.0","-4.0","inf","nan","inf","nan"]]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SELECT
2+
127Y, -128Y,
3+
32767S, -32768S,
4+
2147483647, -2147483648,
5+
9223372036854775807L, -9223372036854775808L
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[["127","-128","32767","-32768","2147483647","-2147483648","9223372036854775807","-9223372036854775808"]]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT 'abc', 'def'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[["abc","def"]]

0 commit comments

Comments
 (0)