Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-22107

"as" should be "alias" in python quick start documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1, 2.3.0
    • Documentation
    • 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

      Attachments

        Activity

          People

            epugachev John O'Leary
            epugachev John O'Leary
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: