-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-43031] [SS] [Connect] Enable unit test and doctest for streaming #40691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4d0fcdd
0ae7e33
b14fe81
17720b7
1e68a3c
dc05be8
c1674eb
23b9c93
60ddd01
e576821
26e2488
e25f7e6
aa1d4c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -535,7 +535,7 @@ def writeStream(self) -> DataStreamWriter: | |
| >>> with tempfile.TemporaryDirectory() as d: | ||
| ... # Create a table with Rate source. | ||
| ... df.writeStream.toTable( | ||
| ... "my_table", checkpointLocation=d) # doctest: +ELLIPSIS | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. curious what does
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My understanding is that in doctest the result will be kind of regex checked if this flag is set. Like the line below right now is So to make this test works for both connect and non-connect, we enable this regex-like check and replace below with ... |
||
| ... "my_table", checkpointLocation=d) | ||
| <...streaming.query.StreamingQuery object at 0x...> | ||
| """ | ||
| return DataStreamWriter(self) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ignore the change in this file. They are added and to be reviewed in #40689.