Commit 6c90a7e
committed
[SPARK-51510] Add SQL-file based
### What changes were proposed in this pull request?
This PR aims to add `SQL-file` based `SQLTests` suite as a new test framework. For example,
- `pipesyntax.sql`
```sql
VALUES (0), (1) tab(col)
|> EXTEND col * 2 AS result
```
- `pipesyntax.sql.json`
```json
[["0","0"],["1","2"]]
```
### Why are the changes needed?
This framework helps us improve test coverage by adding SQL file and golden answer files.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual test against `Apache Spark 4.0.0 RC2` and pass the CIs.
```
$ swift test --filter SQLTests
...
Suite SQLTests started.
Test runAll() started.
pipesyntax.sql
select.sql
Test runAll() passed after 0.083 seconds.
Suite SQLTests passed after 0.083 seconds.
Test run with 1 test passed after 0.083 seconds.
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #18 from dongjoon-hyun/SPARK-51510.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>SQLTests suite1 parent 98e9554 commit 6c90a7e
File tree
7 files changed
+58
-1
lines changed- .github
- Tests/SparkConnectTests
- Resources/queries
7 files changed
+58
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments