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

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


With regards,
Apache Git Services

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

Reply via email to