spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-19544) Improve error message when some column types are compatible and others are not in set/union operations
Date Fri, 10 Feb 2017 05:06:41 GMT

     [ https://issues.apache.org/jira/browse/SPARK-19544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Apache Spark reassigned SPARK-19544:
------------------------------------

    Assignee: Apache Spark

> 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: Apache Spark
>            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


Mime
View raw message