yyanyy commented on PR #60358:
URL: https://github.com/apache/spark/pull/60358#issuecomment-6832478409

   We evaluated rejecting NULL array elements versus preserving and documenting 
the existing NULL-as-zero behavior. The public function documentation does not 
establish that array elements must be non-NULL, and these inputs already 
produce results, so rejecting them would introduce a breaking behavior change.
   
   This PR therefore preserves the current behavior and adds explicit 
documentation and regression tests. NULL array elements are interpreted as 
zero-valued requests; scalar NULL and whole-array NULL arguments continue to 
return NULL.
   
   Feedback on this choice is welcome.
   


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