HyukjinKwon opened a new pull request, #37137: URL: https://github.com/apache/spark/pull/37137
### What changes were proposed in this pull request? This PR proposes to make `regr_slope` and `regr_intercept` ANSI-safe by checking zero to avoid divide-by-zero exceptions when ANSI mode is on. ### Why are the changes needed? To make both expressions working regardless of ANSI mode. ### Does this PR introduce _any_ user-facing change? No, both functions are not released yet. ### How was this patch tested? `JDBCV2Suite` already covers it when ASNI mode is on. This was found by a broken test case, see also https://github.com/apache/spark/pull/36773/files#r916607535 -- 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]
