zhengruifeng opened a new pull request, #57672:
URL: https://github.com/apache/spark/pull/57672

   ### What changes were proposed in this pull request?
   
   Replace the pandas UDF mapping for NumPy rint on pandas-on-Spark objects 
with the native Spark `rint` expression after casting the input to `double`. 
Add coverage for halfway values, signed zero, NaN, and infinities.
   
   ### Why are the changes needed?
   
   The operation can be evaluated by Spark without crossing the Python worker 
boundary while preserving the existing double result type.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   - Added parity coverage in `NumPyCompatTests.test_np_math_functions`.
   - Passed Ruff format and lint checks for the changed Python files.
   - Focused PySpark tests were not run locally.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Codex (GPT-5)


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