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:11:06 UTC

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

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