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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
