From 8328391bc7ca9be05f4ec4d735e8c9b6cd21c0ce Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Tue, 16 Apr 2024 19:45:22 -0700 Subject: [PATCH] Update spark/src/main/scala/org/apache/comet/shims/ShimQueryPlanSerde.scala Co-authored-by: advancedxy --- .../scala/org/apache/comet/shims/ShimQueryPlanSerde.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spark/src/main/scala/org/apache/comet/shims/ShimQueryPlanSerde.scala b/spark/src/main/scala/org/apache/comet/shims/ShimQueryPlanSerde.scala index 28b08305b..9de537a6d 100644 --- a/spark/src/main/scala/org/apache/comet/shims/ShimQueryPlanSerde.scala +++ b/spark/src/main/scala/org/apache/comet/shims/ShimQueryPlanSerde.scala @@ -59,9 +59,7 @@ trait ShimQueryPlanSerde { if (evalMode.isEmpty) { true } else { - // scalastyle:off caselocale - evalMode.head.toString.toLowerCase == "legacy" - // scalastyle:on caselocale + "legacy".equalsIgnoreCase(evalMode.head.toString) } }