Ersa-tech opened a new issue, #7002:
URL: https://github.com/apache/datafusion-comet/issues/7002

   With `spark.sql.legacy.allowNegativeScaleOfDecimal=true`, `CAST(CAST(c * 1E2 
AS TIMESTAMP) AS LONG)` returns `-45600`, `0`, `12300` in Spark. Comet panics 
in `10_i128.pow(scale as u32)` with `attempt to exponentiate with overflow`. 
`CometCast.canCastFromDecimal` reports the cast as compatible for any scale. 
The decimal-to-string path already checks that setting.
   
   This predates and is unchanged by #6969; found in review there.


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