Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
2.2.0
-
None
Description
One piece of example python code in quick-start.md reads
>>> wordCounts = textFile.select(explode(split(textFile.value, "\s+")).as("word")).groupBy("word").count()
This does not execute and presumably should be
alias("word")
instead: https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.functions.explode