You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2024/10/11 06:48:11 UTC
(spark) branch master updated: [SPARK-49927][SS][PYTHON][TESTS][FOLLOW-UP] Fixes `q.lastProgress.batchId` to `q.lastProgress.progress.batchId`
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new cacd261e825a [SPARK-49927][SS][PYTHON][TESTS][FOLLOW-UP] Fixes `q.lastProgress.batchId` to `q.lastProgress.progress.batchId`
cacd261e825a is described below
commit cacd261e825a253aca98f7019fc484f0d94fad6e
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Fri Oct 11 15:47:59 2024 +0900
[SPARK-49927][SS][PYTHON][TESTS][FOLLOW-UP] Fixes `q.lastProgress.batchId` to `q.lastProgress.progress.batchId`
### What changes were proposed in this pull request?
This PR is a followup of https://github.com/apache/spark/pull/48414 that fixes `q.lastProgress.batchId` -> `q.lastProgress.progress.batchId` to fix the test.
### Why are the changes needed?
`q.lastProgress` does not have `progress`. We should fix it to fix up the broken build.
### Does this PR introduce _any_ user-facing change?
No, test-only.
### How was this patch tested?
Manually
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #48419 from HyukjinKwon/SPARK-49927-followup.
Authored-by: Hyukjin Kwon <gu...@apache.org>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
python/pyspark/sql/tests/streaming/test_streaming_listener.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/pyspark/sql/tests/streaming/test_streaming_listener.py b/python/pyspark/sql/tests/streaming/test_streaming_listener.py
index 30d6eee93879..d28fb57a0da2 100644
--- a/python/pyspark/sql/tests/streaming/test_streaming_listener.py
+++ b/python/pyspark/sql/tests/streaming/test_streaming_listener.py
@@ -230,7 +230,7 @@ class StreamingListenerTestsMixin:
q = observed_ds.writeStream.format("noop").start()
- while q.lastProgress is None or q.lastProgress.batchId == 0:
+ while q.lastProgress is None or q.lastProgress.progress.batchId == 0:
q.awaitTermination(0.5)
time.sleep(5)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org