YutaLin opened a new issue, #22401:
URL: https://github.com/apache/datafusion/issues/22401
datafusion-spark's **make_dt_interval** / **make_interval** kernels use
checked_add/checked_mul and append_null() on overflow.
Spark's **IntervalUtils.makeDayTimeInterval / makeInterval** use
Math.addExact/multiplyExact and throw SparkArithmeticException
(INTERVAL_ARITHMETIC_OVERFLOW).
e.g. make_dt_interval(1000000000, 0, 0, 0) returns NULL here but errors in
Spark.
Suggest erroring (or a configurable ANSI-style mode) to match Spark's
documented behavior.
--
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]