You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by mi...@apache.org on 2025/09/16 09:17:38 UTC

(incubator-gluten) branch main updated: [GLUTEN-10691] Improve getAndCheckSubstraitName for ExpressionConverter (#10692)

This is an automated email from the ASF dual-hosted git repository.

mingliang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 04dc12a6ab [GLUTEN-10691] Improve getAndCheckSubstraitName for ExpressionConverter (#10692)
04dc12a6ab is described below

commit 04dc12a6abea5f1644614a27a575b0e1fbe38c96
Author: Jiaan Geng <be...@163.com>
AuthorDate: Tue Sep 16 17:17:34 2025 +0800

    [GLUTEN-10691] Improve getAndCheckSubstraitName for ExpressionConverter (#10692)
---
 .../scala/org/apache/gluten/expression/ExpressionConverter.scala | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/gluten-substrait/src/main/scala/org/apache/gluten/expression/ExpressionConverter.scala b/gluten-substrait/src/main/scala/org/apache/gluten/expression/ExpressionConverter.scala
index ceee7d4799..37f90d512e 100644
--- a/gluten-substrait/src/main/scala/org/apache/gluten/expression/ExpressionConverter.scala
+++ b/gluten-substrait/src/main/scala/org/apache/gluten/expression/ExpressionConverter.scala
@@ -819,14 +819,7 @@ object ExpressionConverter extends SQLConfHelper with Logging {
     // Check whether Gluten supports this expression
     expressionsMap
       .get(expr.getClass)
-      .flatMap {
-        name =>
-          if (!BackendsApiManager.getValidatorApiInstance.doExprValidate(name, expr)) {
-            None
-          } else {
-            Some(name)
-          }
-      }
+      .filter(BackendsApiManager.getValidatorApiInstance.doExprValidate(_, expr))
       .getOrElse {
         throw new GlutenNotSupportException(
           s"Not supported to map spark function name" +


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org