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/01/16 12:52:37 UTC

[GitHub] maropu opened a new pull request #23566: [SPARK-26637][SQL] Makes GetArrayItem nullability more precise

maropu opened a new pull request #23566: [SPARK-26637][SQL] Makes GetArrayItem nullability more precise
URL: https://github.com/apache/spark/pull/23566
 
 
   ## What changes were proposed in this pull request?
   In the master, GetArrayItem nullable is always true;
   https://github.com/apache/spark/blob/cf133e611020ed178f90358464a1b88cdd9b7889/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/complexTypeExtractors.scala#L236
   
   But, If input array size is constant and ordinal is foldable, we could make GetArrayItem nullability more precise. This pr added code to make `GetArrayItem` nullability more precise.
   
   ## 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:
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