-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-18852][SS]StreamingQuery.lastProgress should be null when recentProgress is empty #16273
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
Conversation
| } | ||
|
|
||
| test("lastProgress should be null when recentProgress is empty") { | ||
| BlockingSource.latch = new CountDownLatch(1) |
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.
Glad that you got to re-use BlockingSource!
| ) | ||
| } | ||
|
|
||
| test("lastProgress should be null when recentProgress is empty") { |
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.
should we add a similar test to python just to make sure it returns None? Do we need to update any docs?
| progressBuffer.toArray | ||
| } | ||
|
|
||
| /** Returns the most recent query progress update. */ |
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.
Maybe add returns null if there were no progress updates
|
Left one comment on updating docs, otherwise LGTM |
|
Test build #70106 has finished for PR 16273 at commit
|
|
Test build #70105 has finished for PR 16273 at commit
|
|
Test build #70112 has finished for PR 16273 at commit
|
|
retest this please |
|
Test build #70124 has started for PR 16273 at commit |
|
retest this please |
|
LGTM! |
|
Test build #70138 has finished for PR 16273 at commit
|
|
Test build #70144 has finished for PR 16273 at commit
|
…entProgress is empty
## What changes were proposed in this pull request?
Right now `StreamingQuery.lastProgress` throws NoSuchElementException and it's hard to be used in Python since Python user will just see Py4jError.
This PR just makes it return null instead.
## How was this patch tested?
`test("lastProgress should be null when recentProgress is empty")`
Author: Shixiong Zhu <[email protected]>
Closes #16273 from zsxwing/SPARK-18852.
(cherry picked from commit 1ac6567)
Signed-off-by: Shixiong Zhu <[email protected]>
…entProgress is empty
## What changes were proposed in this pull request?
Right now `StreamingQuery.lastProgress` throws NoSuchElementException and it's hard to be used in Python since Python user will just see Py4jError.
This PR just makes it return null instead.
## How was this patch tested?
`test("lastProgress should be null when recentProgress is empty")`
Author: Shixiong Zhu <[email protected]>
Closes apache#16273 from zsxwing/SPARK-18852.
…entProgress is empty
## What changes were proposed in this pull request?
Right now `StreamingQuery.lastProgress` throws NoSuchElementException and it's hard to be used in Python since Python user will just see Py4jError.
This PR just makes it return null instead.
## How was this patch tested?
`test("lastProgress should be null when recentProgress is empty")`
Author: Shixiong Zhu <[email protected]>
Closes apache#16273 from zsxwing/SPARK-18852.
What changes were proposed in this pull request?
Right now
StreamingQuery.lastProgressthrows NoSuchElementException and it's hard to be used in Python since Python user will just see Py4jError.This PR just makes it return null instead.
How was this patch tested?
test("lastProgress should be null when recentProgress is empty")