This is an automated email from the ASF dual-hosted git repository.
yangjie01 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 89fb67f7e880 [SPARK-50676][SQL] Remove unused `private lazy val
mapValueContainsNull` from `ElementAt`
89fb67f7e880 is described below
commit 89fb67f7e88044bcf364d8e70cd171647d7671fe
Author: yangjie01 <[email protected]>
AuthorDate: Sat Dec 28 15:51:31 2024 +0800
[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 <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
---
.../apache/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 9843e844ad16..84e52282b632 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]