gengliangwang commented on a change in pull request #31349: URL: https://github.com/apache/spark/pull/31349#discussion_r580023282
########## File path: sql/core/src/test/resources/sql-tests/results/postgreSQL/union.sql.out ########## @@ -682,10 +682,10 @@ struct<id:bigint> -- !query SELECT cast('3.4' as decimal(38, 18)) UNION SELECT 'foo' -- !query schema -struct<CAST(3.4 AS DECIMAL(38,18)):string> +struct<> -- !query output -3.400000000000000000 -foo +org.apache.spark.SparkException Review comment: See the discussion in https://github.com/apache/spark/pull/31390#issuecomment-783116851. The function `btrim` was added for string type as per @beliefer ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org