From 14998bb7fd0c13409a64080f6d0d589e3f187c57 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Wed, 27 Aug 2025 16:03:09 -0600 Subject: [PATCH] fix compiler warning --- .../main/scala/org/apache/comet/rules/CometScanRule.scala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spark/src/main/scala/org/apache/comet/rules/CometScanRule.scala b/spark/src/main/scala/org/apache/comet/rules/CometScanRule.scala index e1511b289b..2969e7689e 100644 --- a/spark/src/main/scala/org/apache/comet/rules/CometScanRule.scala +++ b/spark/src/main/scala/org/apache/comet/rules/CometScanRule.scala @@ -307,10 +307,7 @@ case class CometScanRule(session: SparkSession) extends Rule[SparkPlan] with Com // maps containing complex types are not supported isComplexType(m.keyType) || isComplexType(m.valueType) || hasUnsupportedType(m.keyType) || hasUnsupportedType(m.valueType) - case dt => isStringCollationType(dt) - case _: StringType => - // we only support `case object StringType` and not other instances of `class StringType` - dataType != StringType + case dt if isStringCollationType(dt) => true case _ => false } }