mingmwang commented on issue #4478:
URL: 
https://github.com/apache/arrow-datafusion/issues/4478#issuecomment-1340364276

   I think SparkSQL does not have a consistent behavior.
   See example below:
   
   SparkSQL 3.x Thrift Server JDBC
   
   ```
   CREATE TEMPORARY TABLE t1 (t1_id INT,t1_name String);
   select t1_id, cast(t1_id as decimal(10, 0)), t1_id + cast(t1_id as 
decimal(10, 0)) from t1;
   ```
   Result:
   
   
+-----+-----+-------------------------------------------------------------------+
   |  t1_id  | t1_id | (CAST(t1_id AS DECIMAL(10,0)) + CAST(t1_id AS 
DECIMAL(10,0))) |
   
+-----+-----+-------------------------------------------------------------------+
   
   
+-----+-----+-------------------------------------------------------------------+
   
   


-- 
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]

Reply via email to