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

tkalkirill pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new e6828258c2e IGNITE-29008 SQL Calcite: Support custom aggregate 
functions with SqlKind.OTHER_FUNCTION (#13511)
e6828258c2e is described below

commit e6828258c2e2777283ead38df5e815201e182dd6
Author: Kirill Tkalenko <[email protected]>
AuthorDate: Mon Aug 24 11:54:55 2026 +0300

    IGNITE-29008 SQL Calcite: Support custom aggregate functions with 
SqlKind.OTHER_FUNCTION (#13511)
---
 .../internal/processors/query/calcite/prepare/IgniteSqlValidator.java | 1 +
 .../query/calcite/integration/OperatorsExtensionIntegrationTest.java  | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/IgniteSqlValidator.java
 
b/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/IgniteSqlValidator.java
index b3c643b7b9b..5656165a221 100644
--- 
a/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/IgniteSqlValidator.java
+++ 
b/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/IgniteSqlValidator.java
@@ -620,6 +620,7 @@ public class IgniteSqlValidator extends SqlValidatorImpl {
             case LAST_VALUE:
             case NTILE:
             case NTH_VALUE:
+            case OTHER_FUNCTION:
                 return;
             default:
                 throw newValidationError(call,
diff --git 
a/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/OperatorsExtensionIntegrationTest.java
 
b/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/OperatorsExtensionIntegrationTest.java
index 8825c2b4eb3..43f5a9248e1 100644
--- 
a/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/OperatorsExtensionIntegrationTest.java
+++ 
b/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/OperatorsExtensionIntegrationTest.java
@@ -380,7 +380,7 @@ public class OperatorsExtensionIntegrationTest extends 
AbstractBasicIntegrationT
             super(
                 "TEST_SUM",
                 null,
-                SqlKind.SUM,
+                SqlKind.OTHER_FUNCTION,
                 ReturnTypes.AGG_SUM,
                 null,
                 OperandTypes.NUMERIC,
@@ -399,7 +399,7 @@ public class OperatorsExtensionIntegrationTest extends 
AbstractBasicIntegrationT
             super(
                 "TEST_COUNT_PAIRS",
                 null,
-                SqlKind.SUM,
+                SqlKind.OTHER_FUNCTION,
                 opBinding -> 
opBinding.getTypeFactory().createSqlType(SqlTypeName.BIGINT),
                 null,
                 OperandTypes.family(SqlTypeFamily.NUMERIC, 
SqlTypeFamily.NUMERIC),

Reply via email to