[
https://issues.apache.org/jira/browse/SPARK-19544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herman van Hovell resolved SPARK-19544.
---------------------------------------
Resolution: Fixed
Assignee: Hyukjin Kwon
Fix Version/s: 2.2.0
> Improve error message when some column types are compatible and others are
> not in set/union operations
> ------------------------------------------------------------------------------------------------------
>
> Key: SPARK-19544
> URL: https://issues.apache.org/jira/browse/SPARK-19544
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.2.0
> Reporter: Hyukjin Kwon
> Assignee: Hyukjin Kwon
> Priority: Minor
> Fix For: 2.2.0
>
>
> Currently,
> {code}
> Seq((1,("a", 1))).toDF union Seq((1L,("a", "b"))).toDF
> org.apache.spark.sql.AnalysisException: Union can only be performed on tables
> with the compatible column types. LongType <> IntegerType at the first column
> of the second table;;
> {code}
> It prints that it fails due to {{LongType <> IntegerType}} whereas actually
> it is {{StructType(...) <> StructType(...)}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]