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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to