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

Fix CSV SparkR SQL Example

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.0, 2.3.1, 2.3.2, 2.4.0
    • 2.3.3, 2.4.0
    • Examples, R
    • None

    Description

      This issue aims to fix the following SparkR example in Spark 2.3.0 ~ 2.4.0.

      > df <- read.df("examples/src/main/resources/people.csv", "csv")
      > namesAndAges <- select(df, "name", "age")
      ...
      Caused by: org.apache.spark.sql.AnalysisException: cannot resolve '`name`' given input columns: [_c0];;
      'Project ['name, 'age]
      +- AnalysisBarrier
            +- Relation[_c0#97] csv
      

      Attachments

        Activity

          People

            dongjoon Dongjoon Hyun
            dongjoon Dongjoon Hyun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: