From 89fb67f7e88044bcf364d8e70cd171647d7671fe Mon Sep 17 00:00:00 2001 From: yangjie01 Date: Sat, 28 Dec 2024 15:51:31 +0800 Subject: [PATCH] [SPARK-50676][SQL] Remove unused `private lazy val mapValueContainsNull` from `ElementAt` ### What changes were proposed in this pull request? SPARK-33460 added `mapValueContainsNull` to `ElementAt`, but after SPARK-40066, this private lazy val is no longer used, so this pr removes it from `ElementAt`. ### Why are the changes needed? Cleanup unused code. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #49300 from LuciferYang/SPARK-50676. Authored-by: yangjie01 Signed-off-by: yangjie01 --- .../spark/sql/catalyst/expressions/collectionOperations.scala | 3 --- 1 file changed, 3 deletions(-) diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala index 9843e844ad169..84e52282b632f 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala @@ -2609,9 +2609,6 @@ case class ElementAt( @transient private lazy val mapKeyType = left.dataType.asInstanceOf[MapType].keyType - @transient private lazy val mapValueContainsNull = - left.dataType.asInstanceOf[MapType].valueContainsNull - @transient private lazy val arrayElementNullable = left.dataType.asInstanceOf[ArrayType].containsNull