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

Fix CSV SparkR SQL Example

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0, 2.3.1, 2.3.2, 2.4.0
    • Fix Version/s: 2.3.3, 2.4.0
    • Component/s: Examples, R
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: