-
Notifications
You must be signed in to change notification settings - Fork 28k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-47004][CONNECT] Added more tests to ClientStreamingQuerySuite …
…to increase Scala client test coverage ### What changes were proposed in this pull request? Added more tests to ClientStreamingQuerySuite to increase Scala client test coverage - Included AvailableNow trigger, processingTime trigger and default trigger have been covered by existing tests. - Added file tests with read/save options, including 2 new test resources for csv and text file sources. - Added test for streaming temp view. ### Why are the changes needed? To increase test coverage for Streaming Spark Connect Scala client ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? This is a test-only change. ### Was this patch authored or co-authored using generative AI tooling? No Closes #45063 from bogao007/sc-unit-test. Authored-by: bogao007 <bo.gao@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
- Loading branch information
1 parent
5da73d3
commit 7acc156
Showing
3 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
connector/connect/common/src/test/resources/query-tests/test-data/streaming/csv/people.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name;age;job | ||
Jorge;30;Developer | ||
Bob;32;Developer |
3 changes: 3 additions & 0 deletions
3
connector/connect/common/src/test/resources/query-tests/test-data/streaming/txt/people.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Michael, 29 | ||
Andy, 30 | ||
Justin, 19 |