From 6dac794a02b197fd5e0ffbd433cc76ff5d4fe88e Mon Sep 17 00:00:00 2001 From: Hongze Zhang Date: Mon, 17 Jun 2024 11:10:53 +0800 Subject: [PATCH] fixup --- .../gluten/extension/columnar/enumerated/RemoveSort.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gluten-core/src/main/scala/org/apache/gluten/extension/columnar/enumerated/RemoveSort.scala b/gluten-core/src/main/scala/org/apache/gluten/extension/columnar/enumerated/RemoveSort.scala index 4c7aac3b56d2f..7e9d87ef0187a 100644 --- a/gluten-core/src/main/scala/org/apache/gluten/extension/columnar/enumerated/RemoveSort.scala +++ b/gluten-core/src/main/scala/org/apache/gluten/extension/columnar/enumerated/RemoveSort.scala @@ -48,7 +48,9 @@ object RemoveSort extends RasRule[SparkPlan] { out } override def shape(): Shape[SparkPlan] = pattern( - node[SparkPlan] { case p: GlutenPlan => p.requiredChildOrdering.exists(req => req.isEmpty) } - .build() + node[SparkPlan] { + case p: GlutenPlan => p.requiredChildOrdering.exists(req => req.isEmpty) + case _ => false + }.build() ) }