You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ur...@apache.org on 2026/08/13 09:04:09 UTC
(spark) branch branch-4.x updated: [MINOR][PYTHON][DOC] Fix session window example usage
This is an automated email from the ASF dual-hosted git repository.
uros-b pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.x by this push:
new 641fad3cae75 [MINOR][PYTHON][DOC] Fix session window example usage
641fad3cae75 is described below
commit 641fad3cae75c194bffe8593d307b38e595ffd2f
Author: Israel Obukonise <is...@users.noreply.github.com>
AuthorDate: Tue Jul 21 10:23:29 2026 -0700
[MINOR][PYTHON][DOC] Fix session window example usage
### What changes were proposed in this pull request?
This PR fixes the usage filename in the docstring for the PySpark structured streaming session window example.
### Why are the changes needed?
The docstring currently refers to structured_network_wordcount_windowed.py, but the actual example file and runtime usage message use structured_network_wordcount_session_window.py. This update makes the example usage consistent.
### Does this PR introduce _any_ user-facing change?
No. This is a documentation/example text-only change and does not change runtime behaviour.
### How was this patch tested?
Ran:
git diff --check
Also verified the example file compiles with py_compile using a local Python interpreter.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: OpenAI Codex, ChatGPT GPT-5.5 Thinking
Closes #56760 from Israelobuk/fix-session-window-example-usage.
Authored-by: Israel Obukonise <is...@users.noreply.github.com>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
(cherry picked from commit daddd79111d1296f5be5a509c77a5dfae3a1e01a)
Signed-off-by: Uros Bojanic <22...@users.noreply.github.com>
---
.../python/sql/streaming/structured_network_wordcount_session_window.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/src/main/python/sql/streaming/structured_network_wordcount_session_window.py b/examples/src/main/python/sql/streaming/structured_network_wordcount_session_window.py
index 4fe61c94980e..722d409792bf 100644
--- a/examples/src/main/python/sql/streaming/structured_network_wordcount_session_window.py
+++ b/examples/src/main/python/sql/streaming/structured_network_wordcount_session_window.py
@@ -19,7 +19,7 @@ r"""
Split lines into words, group by words and use the state per key to track session of each key.
Each session window sets a 10 seconds processing time timeout.
After 10 seconds of idle period, the session summary will be finalized and output to sink.
- Usage: structured_network_wordcount_windowed.py <hostname> <port>
+ Usage: structured_network_wordcount_session_window.py <hostname> <port>
<hostname> and <port> describe the TCP server that Structured Streaming
would connect to receive data.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org