viirya commented on a change in pull request #34038:
URL: https://github.com/apache/spark/pull/34038#discussion_r716009611



##########
File path: 
sql/core/src/test/resources/sql-tests/results/postgreSQL/union.sql.out
##########
@@ -684,8 +684,8 @@ SELECT cast('3.4' as decimal(38, 18)) UNION SELECT 'foo'
 -- !query schema
 struct<>
 -- !query output
-org.apache.spark.SparkException
-Failed to merge incompatible data types decimal(38,18) and string
+org.apache.spark.sql.AnalysisException
+Union can only be performed on tables with the compatible column types. string 
<> decimal(38,18) at the first column of the second table

Review comment:
       Updated the error message. Please let me know if it looks good to you.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to