nvander1 edited a comment on issue #24761: [SPARK-27905] [SQL] Add higher order 
function 'forall'
URL: https://github.com/apache/spark/pull/24761#issuecomment-516963973
 
 
   I think this summarizes the expected behavior for forall with three valued 
logic:
   ```
     /*
      * true for all non null elements foundNull      result
      *    F                              F             F
      *    F                              T             F
      *    T                              F             T
      *    T                              T             N
      */
   ```
   And this is captured by the following check
   
   ```
       if (foundNull && forall) {
         null
       } else {
         forall
       }
   ```
   What do you think?

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