From 59289083828e1bb8c74dd9001e1c6a85ce071b30 Mon Sep 17 00:00:00 2001 From: Ziqi Liu Date: Tue, 25 Jun 2024 14:49:11 -0700 Subject: [PATCH] [SPARK-48466][SQL][FOLLOWUP] Fix missing pattern match in EmptyRelationExec ### What changes were proposed in this pull request? Fixed a missing pattern match introduced in https://github.com/apache/spark/pull/46830 Sorry for the silly mistake... ### Why are the changes needed? ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? Existing tests ### Was this patch authored or co-authored using generative AI tooling? NO Closes #47089 from liuzqt/SPARK-48466. Authored-by: Ziqi Liu Signed-off-by: Gengliang Wang --- .../scala/org/apache/spark/sql/execution/EmptyRelationExec.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/EmptyRelationExec.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/EmptyRelationExec.scala index fc90d72b90de3..085c0b22524c9 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/EmptyRelationExec.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/EmptyRelationExec.scala @@ -86,6 +86,7 @@ case class EmptyRelationExec(@transient logical: LogicalPlan) extends LeafExecNo logical.foreach { case LogicalQueryStage(_, physical) => physical.cleanupResources() + case _ => } super.cleanupResources() }