This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun 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 daddd79111d1 [MINOR][PYTHON][DOC] Fix session window example usage
daddd79111d1 is described below
commit daddd79111d1296f5be5a509c77a5dfae3a1e01a
Author: Israel Obukonise <[email protected]>
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 <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../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: [email protected]
For additional commands, e-mail: [email protected]