MaxGekk commented on PR #59956: URL: https://github.com/apache/spark/pull/59956#issuecomment-6628874410
Merged master to resolve the conflict in the migration guide (both sides added 4.4 entries); `IntervalExpressionsSuite` and the `interval` golden files pass on the merged branch. On the question about `try_divide` building two exceptions per overflowing row: I would keep the shared `withOverflow`. `try_add` and `try_subtract` already build two exceptions per overflowing row the same way through `addExact` and `subtractExact`, a range check before the conversion would have to reproduce Guava's `HALF_UP` range rules per overload, and the cost lands only on rows that overflow under `try_*`, where the result is NULL anyway. If a measurement shows it matters, a pre-check is a self-contained follow-up. -- 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]
