diff options
author | Shixiong Zhu <shixiong@databricks.com> | 2016-12-14 13:36:41 -0800 |
---|---|---|
committer | Shixiong Zhu <shixiong@databricks.com> | 2016-12-14 13:36:41 -0800 |
commit | 1ac6567bdb03d7cc5c5f3473827a102280cb1030 (patch) | |
tree | be8018d4e321c590298727fdc73369c3dfcbbd71 /mllib | |
parent | 5d799473696a15fddd54ec71a93b6f8cb169810c (diff) | |
download | spark-1ac6567bdb03d7cc5c5f3473827a102280cb1030.tar.gz spark-1ac6567bdb03d7cc5c5f3473827a102280cb1030.tar.bz2 spark-1ac6567bdb03d7cc5c5f3473827a102280cb1030.zip |
[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.
Diffstat (limited to 'mllib')
0 files changed, 0 insertions, 0 deletions