[ https://issues.apache.org/jira/browse/SPARK-19544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-19544: --------------------------------- Description: 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(...)}} was: 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(...)}} > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org