spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject spark git commit: [SPARK-18426][STRUCTURED STREAMING] Python Documentation Fix for Structured Streaming Programming Guide
Date Mon, 14 Nov 2016 02:10:19 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.1 6fae4241f -> 0c69224ed


[SPARK-18426][STRUCTURED STREAMING] Python Documentation Fix for Structured Streaming Programming
Guide

## What changes were proposed in this pull request?

Update the python section of the Structured Streaming Guide from .builder() to .builder

## How was this patch tested?

Validated documentation and successfully running the test example.

Please review https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark before
opening a pull request.

'Builder' object is not callable object hence changed .builder() to
.builder

Author: Denny Lee <dennylee@gallifrey.local>

Closes #15872 from dennyglee/master.

(cherry picked from commit b91a51bb231af321860415075a7f404bc46e0a74)
Signed-off-by: Reynold Xin <rxin@databricks.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/0c69224e
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/0c69224e
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/0c69224e

Branch: refs/heads/branch-2.1
Commit: 0c69224ed752c25be1545cfe8ba0db8487a70bf2
Parents: 6fae424
Author: Denny Lee <dennylee@gallifrey.local>
Authored: Sun Nov 13 18:10:06 2016 -0800
Committer: Reynold Xin <rxin@databricks.com>
Committed: Sun Nov 13 18:10:16 2016 -0800

----------------------------------------------------------------------
 docs/structured-streaming-programming-guide.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/0c69224e/docs/structured-streaming-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/structured-streaming-programming-guide.md b/docs/structured-streaming-programming-guide.md
index d838ed3..d254558 100644
--- a/docs/structured-streaming-programming-guide.md
+++ b/docs/structured-streaming-programming-guide.md
@@ -58,7 +58,7 @@ from pyspark.sql.functions import explode
 from pyspark.sql.functions import split
 
 spark = SparkSession \
-    .builder() \
+    .builder \
     .appName("StructuredNetworkWordCount") \
     .getOrCreate()
 {% endhighlight %}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message