spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-25795) Fix CSV SparkR SQL Example
Date Mon, 22 Oct 2018 04:44:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-25795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dongjoon Hyun updated SPARK-25795:
----------------------------------
    Description: 
This issue aims to fix the following SparkR example in Spark 2.3.0 ~ 2.4.0.

{code}
> 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
{code}
 
- https://github.com/apache/spark/blob/master/examples/src/main/r/RSparkSQLExample.R
- https://dist.apache.org/repos/dist/dev/spark/v2.4.0-rc3-docs/_site/sql-programming-guide.html#manually-specifying-options
- http://spark.apache.org/docs/2.3.2/sql-programming-guide.html#manually-specifying-options
- http://spark.apache.org/docs/2.3.1/sql-programming-guide.html#manually-specifying-options
- http://spark.apache.org/docs/2.3.0/sql-programming-guide.html#manually-specifying-options




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

{code}
> 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
{code}
 
- https://dist.apache.org/repos/dist/dev/spark/v2.4.0-rc3-docs/_site/sql-programming-guide.html#manually-specifying-options
- http://spark.apache.org/docs/2.3.2/sql-programming-guide.html#manually-specifying-options
- http://spark.apache.org/docs/2.3.1/sql-programming-guide.html#manually-specifying-options
- http://spark.apache.org/docs/2.3.0/sql-programming-guide.html#manually-specifying-options





> Fix CSV SparkR SQL Example
> --------------------------
>
>                 Key: SPARK-25795
>                 URL: https://issues.apache.org/jira/browse/SPARK-25795
>             Project: Spark
>          Issue Type: Bug
>          Components: Examples, R
>    Affects Versions: 2.3.0, 2.3.1, 2.3.2, 2.4.0
>            Reporter: Dongjoon Hyun
>            Assignee: Dongjoon Hyun
>            Priority: Minor
>
> This issue aims to fix the following SparkR example in Spark 2.3.0 ~ 2.4.0.
> {code}
> > 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
> {code}
>  
> - https://github.com/apache/spark/blob/master/examples/src/main/r/RSparkSQLExample.R
> - https://dist.apache.org/repos/dist/dev/spark/v2.4.0-rc3-docs/_site/sql-programming-guide.html#manually-specifying-options
> - http://spark.apache.org/docs/2.3.2/sql-programming-guide.html#manually-specifying-options
> - http://spark.apache.org/docs/2.3.1/sql-programming-guide.html#manually-specifying-options
> - http://spark.apache.org/docs/2.3.0/sql-programming-guide.html#manually-specifying-options



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message