alex-plekhanov commented on a change in pull request #9927:
URL: https://github.com/apache/ignite/pull/9927#discussion_r840564018



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/util/TypeUtils.java
##########
@@ -273,6 +286,26 @@ private static boolean hasConvertableFields(RelDataType 
resultType) {
             .anyMatch(TypeUtils::isConvertableType);
     }
 
+    /** */
+    public static boolean hasPrecesion(RelDataType type) {
+        // Special case for DECIMAL type without precesion and scale specified.
+        if (type.getSqlTypeName() == SqlTypeName.DECIMAL &&
+            type.getPrecision() == 
IgniteTypeSystem.INSTANCE.getDefaultPrecision(SqlTypeName.DECIMAL))
+            return false;
+
+        return type.getPrecision() != RelDataType.PRECISION_NOT_SPECIFIED;
+    }
+
+    /** */
+    public static boolean hasSale(RelDataType type) {

Review comment:
       Thanks, fixed




-- 
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