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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.1, 2.3.0
    • Component/s: Documentation
    • Labels:
      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

            • Assignee:
              epugachev John O'Leary
              Reporter:
              epugachev John O'Leary
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: