1. [SPARK-25795][R][EXAMPLE] Fix CSV SparkR SQL Example (commit: 8fbf3ee91703fc714f3f01237485479562915933) (details)
Commit 8fbf3ee91703fc714f3f01237485479562915933 by dongjoon
[SPARK-25795][R][EXAMPLE] Fix CSV SparkR SQL Example
## What changes were proposed in this pull request?
This PR 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
## How was this patch tested?
Manual test in SparkR. (Please note that `RSparkSQLExample.R` fails at
the last JDBC example)
> df <- read.df("examples/src/main/resources/people.csv", "csv",
sep=";", inferSchema=T, header=T)
> namesAndAges <- select(df, "name", "age")
Closes #22791 from dongjoon-hyun/SPARK-25795.
Authored-by: Dongjoon Hyun <> Signed-off-by: Dongjoon
Hyun <>
(cherry picked from commit 3b4556745e90a13f4ae7ebae4ab682617de25c38)
Signed-off-by: Dongjoon Hyun <>
(commit: 8fbf3ee91703fc714f3f01237485479562915933)
The file was modifiedexamples/src/main/r/RSparkSQLExample.R (diff)