nvander1 commented on issue #24761: [SPARK-27905] [SQL] Add higher order 
function 'forall'
URL: https://github.com/apache/spark/pull/24761#issuecomment-516960184
 
 
   
   
   Should this be null or false? 
   
   ```
   SELECT _FUNC_(array(1, null, 3), x -> false)
   ```
   It seems that this would be false, but following your suggested
   
   ```
   if (!forall) {
     false
   } else if (foundNull) {
     null
   } else {
     true
   }
   ```
   
   would result in null.
   
   @ueshin 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to