jinchengchenghh commented on issue #11980:
URL: https://github.com/apache/gluten/issues/11980#issuecomment-4396271716

   Do you know how JVM Spark handle this case? I assume after table scan, we 
should get the decimal(20, 0) instead of decimal(38, 18)
   
   > the type written in the footer of the ORC file is decimal (38, 18)
   
   And even if the table scan outputs decimal(38, 18), the value is still 
equal, looks like the comparison between different scale has some problems in 
sort merge join? The function `decimal_equalto` can compare the decimal value 
with different scale
   
   > Left key: int128=1 (scale=0)
   > Right key: int128=10 ^ 18 (scale=18)
   > Comparison result: Unequal → No matching rows


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