lowka commented on code in PR #5119:
URL: https://github.com/apache/ignite-3/pull/5119#discussion_r1941293611


##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/CatalogUtils.java:
##########
@@ -547,6 +582,133 @@ public static HybridTimestamp 
clusterWideEnsuredActivationTimestamp(long activat
         return defaultZone != null ? defaultZone.id() : null;
     }
 
+
+    /**
+     * Returns the maximum supported precision for given type or {@code -1} if 
the type does not support precision.
+     *
+     * @param columnType Column type
+     * @return Maximum precision
+     */
+    public static int getMaxPrecision(ColumnType columnType) {
+        if (!columnType.precisionAllowed()) {
+            return -MIN_DECIMAL_PRECISION;

Review Comment:
   Added these constants CatalogUtils: UNSPECIFIED_PRECISION, 
UNSPECIFIED_SCALE, UNSPECIFIED_LENGTH.



##########
modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/sqllogic/ItSqlLogicTest.java:
##########
@@ -145,7 +145,7 @@
 @WithSystemProperty(key = "IMPLICIT_PK_ENABLED", value = "true")
 // The following is to make sure we unlock LWM on data nodes promptly so that 
dropped tables are destroyed fast.
 @WithSystemProperty(key = 
ResourceVacuumManager.RESOURCE_VACUUM_INTERVAL_MILLISECONDS_PROPERTY, value = 
"1000")
-@SqlLogicTestEnvironment(scriptsRoot = "src/integrationTest/sql/group1")
+@SqlLogicTestEnvironment(scriptsRoot = "src/integrationTest/sql/group1", regex 
= "test_timestamp_ms")

Review Comment:
   Thanks. Reverted.



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