Commit 219a49c
[SPARK-40980][CONNECT][TEST] Support session.sql in Connect DSL
### What changes were proposed in this pull request?
This PR adds `def sql(sqlText: String)` to DSL and test the SQL proto with SparkSession/DataFrame.
### Why are the changes needed?
Improve testing coverage.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
UT
Closes apache#38459 from amaliujia/SPARK-40980.
Authored-by: Rui Wang <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>1 parent 968463b commit 219a49c
File tree
2 files changed
+8
-0
lines changed- connector/connect/src
- main/scala/org/apache/spark/sql/connect/dsl
- test/scala/org/apache/spark/sql/connect/planner
2 files changed
+8
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
| |||
connector/connect/src/test/scala/org/apache/spark/sql/connect/planner/SparkConnectProtoSuite.scala
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| |||
0 commit comments