This is an automated email from the ASF dual-hosted git repository.

uros-b 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 a0229e7b5d5b [SPARK-58416][SQL][EXAMPLE] Fix wrong class name in 
SqlNetworkWordCount usage messages
a0229e7b5d5b is described below

commit a0229e7b5d5b605ca326acdcf2e7c9c063c106de
Author: Uros Bojanic <[email protected]>
AuthorDate: Wed Jul 29 21:34:59 2026 +0000

    [SPARK-58416][SQL][EXAMPLE] Fix wrong class name in SqlNetworkWordCount 
usage messages
    
    ### What changes were proposed in this pull request?
    Fixes the usage message in the `SqlNetworkWordCount` streaming examples, 
which printed the wrong class name (`JavaNetworkWordCount` / 
`NetworkWordCount`, copied from the sibling example). Corrected in both the 
Java and Scala versions.
    
    ### Why are the changes needed?
    A user running the example with too few arguments saw a usage line naming a 
different class. Every other reference in each file already uses the correct 
class name.
    
    ### Does this PR introduce _any_ user-facing change?
    Yes (minor): the stderr usage message now prints the correct class name.
    
    ### How was this patch tested?
    Example-only string change; verified the corrected name matches each file's 
class and header. No tests needed.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    Generated-by: Claude Code (Opus 4.8)
    
    Closes #57622 from uros-b/example-javasqlnetworkwordcount-usage.
    
    Authored-by: Uros Bojanic <[email protected]>
    Signed-off-by: Uros Bojanic <[email protected]>
---
 .../org/apache/spark/examples/streaming/JavaSqlNetworkWordCount.java    | 2 +-
 .../scala/org/apache/spark/examples/streaming/SqlNetworkWordCount.scala | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/examples/src/main/java/org/apache/spark/examples/streaming/JavaSqlNetworkWordCount.java
 
b/examples/src/main/java/org/apache/spark/examples/streaming/JavaSqlNetworkWordCount.java
index 5d30698c9337..3191db94902c 100644
--- 
a/examples/src/main/java/org/apache/spark/examples/streaming/JavaSqlNetworkWordCount.java
+++ 
b/examples/src/main/java/org/apache/spark/examples/streaming/JavaSqlNetworkWordCount.java
@@ -48,7 +48,7 @@ public final class JavaSqlNetworkWordCount {
 
   public static void main(String[] args) throws Exception {
     if (args.length < 2) {
-      System.err.println("Usage: JavaNetworkWordCount <hostname> <port>");
+      System.err.println("Usage: JavaSqlNetworkWordCount <hostname> <port>");
       System.exit(1);
     }
 
diff --git 
a/examples/src/main/scala/org/apache/spark/examples/streaming/SqlNetworkWordCount.scala
 
b/examples/src/main/scala/org/apache/spark/examples/streaming/SqlNetworkWordCount.scala
index 64da35f39c05..516c709863b2 100644
--- 
a/examples/src/main/scala/org/apache/spark/examples/streaming/SqlNetworkWordCount.scala
+++ 
b/examples/src/main/scala/org/apache/spark/examples/streaming/SqlNetworkWordCount.scala
@@ -40,7 +40,7 @@ import org.apache.spark.streaming.{Seconds, StreamingContext, 
Time}
 object SqlNetworkWordCount {
   def main(args: Array[String]): Unit = {
     if (args.length < 2) {
-      System.err.println("Usage: NetworkWordCount <hostname> <port>")
+      System.err.println("Usage: SqlNetworkWordCount <hostname> <port>")
       System.exit(1)
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to