Skip to content
Snippets Groups Projects
Commit c4de90fc authored by Shixiong Zhu's avatar Shixiong Zhu
Browse files

[SPARK-18852][SS] StreamingQuery.lastProgress should be null when recentProgress 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 <shixiong@databricks.com>

Closes #16273 from zsxwing/SPARK-18852.

(cherry picked from commit 1ac6567b)
Signed-off-by: default avatarShixiong Zhu <shixiong@databricks.com>
parent e8866f9f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment