diff --git a/docs/structured-streaming-programming-guide.md b/docs/structured-streaming-programming-guide.md index d316e04a3a6f170bce88a7d45d8b008f7c7d5dfc..f73cf93b0cb99d4f3f9d55e7b4942b16a848d543 100644 --- a/docs/structured-streaming-programming-guide.md +++ b/docs/structured-streaming-programming-guide.md @@ -788,11 +788,11 @@ Dataset<Row> windowedCounts = words words = ... # streaming DataFrame of schema { timestamp: Timestamp, word: String } # Group the data by window and word and compute the count of each group -windowedCounts = words - .withWatermark("timestamp", "10 minutes") +windowedCounts = words \ + .withWatermark("timestamp", "10 minutes") \ .groupBy( window(words.timestamp, "10 minutes", "5 minutes"), - words.word) + words.word) \ .count() {% endhighlight %}