You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/02/10 05:06:41 UTC

[jira] [Commented] (SPARK-19544) Improve error message when some column types are compatible and others are not in set/union operations

    [ https://issues.apache.org/jira/browse/SPARK-19544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15860719#comment-15860719 ] 

Apache Spark commented on SPARK-19544:
--------------------------------------

User 'HyukjinKwon' has created a pull request for this issue:
https://github.com/apache/spark/pull/16882

> 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
>            Priority: Minor
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org