[ https://issues.apache.org/jira/browse/SPARK-15265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin resolved SPARK-15265. --------------------------------- Resolution: Fixed Assignee: Dongjoon Hyun Fix Version/s: 2.0.0 > Fix Union query error message indentation > ----------------------------------------- > > Key: SPARK-15265 > URL: https://issues.apache.org/jira/browse/SPARK-15265 > Project: Spark > Issue Type: Bug > Reporter: Dongjoon Hyun > Assignee: Dongjoon Hyun > Priority: Trivial > Fix For: 2.0.0 > > > This issue fixes the error message indentation consistently with other set > queries (EXCEPT/INTERSECT). > **Before (4 lines)** > {code} > scala> sql("(select 1) union (select 1, 2)").head > org.apache.spark.sql.AnalysisException: > Unions can only be performed on tables with the same number of columns, > but one table has '2' columns and another table has > '1' columns; > {code} > **After (one-line)** > {code} > scala> sql("(select 1) union (select 1, 2)").head > org.apache.spark.sql.AnalysisException: Unions can only be performed on > tables with the same number of columns, but one table has '2' columns and > another table has '1' columns; > {code} > **Reference** > EXCEPT / INTERSECT uses one-line format like the following. > {code} > scala> sql("(select 1) intersect (select 1, 2)").head > org.apache.spark.sql.AnalysisException: Intersect can only be performed on > tables with the same number of columns, but the left table has 1 columns and > the right has 2; > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org