bettermouse commented on a change in pull request #27268: [SPARK-30553][DOCS] 
fix structured-streaming java example error
URL: https://github.com/apache/spark/pull/27268#discussion_r368299623
 
 

 ##########
 File path: docs/structured-streaming-programming-guide.md
 ##########
 @@ -978,11 +978,11 @@ val windowedCounts = words
 Dataset<Row> words = ... // streaming DataFrame of schema { timestamp: 
Timestamp, word: String }
 
 // Group the data by window and word and compute the count of each group
-Dataset<Row> windowedCounts = words
-    .withWatermark("timestamp", "10 minutes")
+Dataset<Row> wordsWatermark = words.withWatermark("timestamp", "10 minutes");
+Dataset<Row> windowedCounts = wordsWatermark
     .groupBy(
-        functions.window(words.col("timestamp"), "10 minutes", "5 minutes"),
-        words.col("word"))
+        functions.window(wordsWatermark.col("timestamp"), "10 minutes", "5 
minutes"),
 
 Review comment:
   @HeartSaVioR   Thank you for your help.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to