-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
[SPARK-23119][SS] Minor fixes to V2 streaming APIs #20286
Conversation
@jose-torres @zsxwing Can you take a look. |
LGTM |
Test build #86224 has finished for PR 20286 at commit
|
jenkins retest this please. |
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.
LGTM except some nits
@@ -25,7 +26,11 @@ | |||
/** | |||
* A mix-in interface for {@link DataSourceV2Reader}. Data source readers can implement this | |||
* interface to indicate they allow micro-batch streaming reads. | |||
* | |||
* Note: This class currently extends {@link BaseStreamingSource} to maintain compatibility with | |||
* DataSource V1 APIs. This will be extension will be removed once we get rid of V1 completely. |
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.
ditto
@@ -27,11 +28,15 @@ | |||
* interface to allow reading in a continuous processing mode stream. | |||
* | |||
* Implementations must ensure each read task output is a {@link ContinuousDataReader}. | |||
* | |||
* Note: This class currently extends {@link BaseStreamingSource} to maintain compatibility with | |||
* DataSource V1 APIs. This will be extension will be removed once we get rid of V1 completely. |
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.
nit: This will be extension
* to reconstruct a position in the stream up to which data has been seen/processed. | ||
* | ||
* Note: This class currently extends {@link org.apache.spark.sql.execution.streaming.Offset} to | ||
* maintain compatibility with DataSource V1 APIs. This will be extension will be removed once we |
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.
ditto
Test build #86249 has finished for PR 20286 at commit
|
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.
I think this change is OK, except the nits zsxwing already noted.
Test build #86292 has finished for PR 20286 at commit
|
LGTM. Merging to master and 2.3. |
## What changes were proposed in this pull request? - Added `InterfaceStability.Evolving` annotations - Improved docs. ## How was this patch tested? Existing tests. Author: Tathagata Das <[email protected]> Closes #20286 from tdas/SPARK-23119. (cherry picked from commit bac0d66) Signed-off-by: Shixiong Zhu <[email protected]>
What changes were proposed in this pull request?
@InterfaceStability.Evolving
annotationsHow was this patch tested?
Existing tests.