Repository: spark Updated Branches: refs/heads/branch-2.0 80c1a1f30 -> a719c5128
[SPARK-18426][STRUCTURED STREAMING] Python Documentation Fix for Structured Streaming Programming Guide Update the python section of the Structured Streaming Guide from .builder() to .builder 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 <[email protected]> Closes #15872 from dennyglee/master. (cherry picked from commit b91a51bb231af321860415075a7f404bc46e0a74) Signed-off-by: Reynold Xin <[email protected]> (cherry picked from commit b6e4d3925239836334867d6ebcf22e5a1369cfc0) Signed-off-by: Reynold Xin <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/a719c512 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/a719c512 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/a719c512 Branch: refs/heads/branch-2.0 Commit: a719c5128fddb133c5d496b85032e0049506a95c Parents: 80c1a1f Author: Denny Lee <[email protected]> Authored: Sun Nov 13 18:10:06 2016 -0800 Committer: Reynold Xin <[email protected]> Committed: Sun Nov 13 18:11:59 2016 -0800 ---------------------------------------------------------------------- docs/structured-streaming-programming-guide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/a719c512/docs/structured-streaming-programming-guide.md ---------------------------------------------------------------------- diff --git a/docs/structured-streaming-programming-guide.md b/docs/structured-streaming-programming-guide.md index be730b8..537aa06 100644 --- a/docs/structured-streaming-programming-guide.md +++ b/docs/structured-streaming-programming-guide.md @@ -59,9 +59,9 @@ from pyspark.sql import SparkSession from pyspark.sql.functions import explode from pyspark.sql.functions import split -spark = SparkSession\ - .builder()\ - .appName("StructuredNetworkWordCount")\ +spark = SparkSession \ + .builder \ + .appName("StructuredNetworkWordCount") \ .getOrCreate() {% endhighlight %} --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
