tledkov-gridgain commented on a change in pull request #9148:
URL: https://github.com/apache/ignite/pull/9148#discussion_r720097531



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/type/IgniteTypeSystem.java
##########
@@ -38,4 +40,36 @@
     @Override public int getMaxNumericPrecision() {
         return Short.MAX_VALUE;
     }
+
+    /** {@inheritDoc} */
+    @Override public RelDataType deriveSumType(RelDataTypeFactory typeFactory, 
RelDataType argumentType) {
+        RelDataType sumType;
+
+        switch (argumentType.getSqlTypeName()) {
+            case INTEGER:
+            case TINYINT:
+            case SMALLINT:
+                sumType = typeFactory.createJavaType(Long.class);

Review comment:
       Fixed by add separate branch for the `BasicSqlType`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to