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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]