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/02/22 04:10:20 UTC

[GitHub] maropu opened a new pull request #23867: [SPARK-26965][SQL] Makes ElementAt nullability more precise

maropu opened a new pull request #23867: [SPARK-26965][SQL] Makes ElementAt nullability more precise
URL: https://github.com/apache/spark/pull/23867
 
 
   ## What changes were proposed in this pull request?
   In master, `ElementAt` nullable is always true;
   https://github.com/apache/spark/blob/be1cadf16dc70e22eae144b3dfce9e269ef95acc/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala#L1977
   
   But, If input key is foldable, we could make its nullability more precise.
   This fix is the same with SPARK-26637(#23566) and SPARK-26747(#23669)
   
   ## How was this patch tested?
   Added tests in `CollectionExpressionsSuite`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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