[
https://issues.apache.org/jira/browse/SPARK-30810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-30810.
---------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 27561
[https://github.com/apache/spark/pull/27561]
> Allows to parse a Dataset having different column from 'value' in
> csv(dataset) API
> ----------------------------------------------------------------------------------
>
> Key: SPARK-30810
> URL: https://issues.apache.org/jira/browse/SPARK-30810
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Hyukjin Kwon
> Assignee: Hyukjin Kwon
> Priority: Major
> Fix For: 3.0.0
>
>
> {code}
> val ds = spark.range(10).selectExpr("'a, b, c' AS text").as[String]
> spark.read.csv(ds).show()
> {code}
> {code}
> org.apache.spark.sql.AnalysisException: cannot resolve '`value`' given input
> columns: [text];;
> 'Filter (length(trim('value, None)) > 0)
> +- Project [a, b, c AS text#2]
> +- Range (0, 10, step=1, splits=Some(2))
> {code}
> It fails to create a CSV parsed DataFrame from a String Dataset.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]