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

   ### What changes were proposed in this pull request?
   
   Replace the scalar pandas UDF mappings for NumPy `cosh`, `deg2rad`, `log2`, 
`rad2deg`, `sinh`, and `tanh` on pandas-on-Spark objects with their native 
Spark SQL function counterparts.
   
   Add end-to-end pandas-on-Spark coverage that compares every mapped NumPy 
ufunc result with pandas.
   
   ### Why are the changes needed?
   
   These mappings originated before the corresponding native Spark SQL 
functions were available. Current Spark provides the native functions, 
including Spark Connect support, so this removes the Python worker boundary 
while preserving NumPy-compatible results.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   - Added end-to-end pandas-on-Spark coverage for all six mappings.
   - Ran `git diff --check`.
   - Runtime 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