Skip to content
Snippets Groups Projects
Commit 56f997f1 authored by uncleGen's avatar uncleGen Committed by Sean Owen
Browse files

[SPARK-20021][PYSPARK] Miss backslash in python code


## What changes were proposed in this pull request?

Add backslash for line continuation in python code.

## How was this patch tested?

Jenkins.

Author: uncleGen <hustyugm@gmail.com>
Author: dylon <hustyugm@gmail.com>

Closes #17352 from uncleGen/python-example-doc.

(cherry picked from commit facfd608)
Signed-off-by: default avatarSean Owen <sowen@cloudera.com>
parent 277ed375
No related branches found
No related tags found
No related merge requests found
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment