You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/07/31 18:34:04 UTC

[GitHub] [spark] nvander1 edited a comment on issue #24761: [SPARK-27905] [SQL] Add higher order function 'forall'

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org