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

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

Hyukjin Kwon created SPARK-19544:
------------------------------------

             Summary: 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