You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "ygerzhedovich (via GitHub)" <gi...@apache.org> on 2023/09/19 15:21:47 UTC

[GitHub] [ignite-3] ygerzhedovich commented on a diff in pull request #2593: IGNITE-19938 Sql. Improve catalog validation for columns parameters

ygerzhedovich commented on code in PR #2593:
URL: https://github.com/apache/ignite-3/pull/2593#discussion_r1330312157


##########
modules/api/src/main/java/org/apache/ignite/sql/ColumnType.java:
##########
@@ -33,134 +32,96 @@
  */
 public enum ColumnType {
     /** Boolean. */
-    BOOLEAN,
+    BOOLEAN(Boolean.class, PrecisionScale.NO_NO),
 
     /** 8-bit signed integer. */
-    INT8,
+    INT8(Byte.class, PrecisionScale.NO_NO),
 
     /** 16-bit signed integer. */
-    INT16,
+    INT16(Short.class, PrecisionScale.NO_NO),
 
     /** 32-bit signed integer. */
-    INT32,
+    INT32(Integer.class, PrecisionScale.NO_NO),
 
     /** 64-bit signed integer. */
-    INT64,
+    INT64(Long.class, PrecisionScale.NO_NO),
 
     /** 32-bit single-precision floating-point number. */
-    FLOAT,
+    FLOAT(Float.class, PrecisionScale.YES_NO),
 
-    /** 64-bit double-precision floating-point number. */
-    DOUBLE,
+    /**
+     * 64-bit double-precision floating-point number.
+     *
+     * <p>SQL`16 part 2 section 6.1 syntax rule 31, implementation-defined precision
+     */
+    DOUBLE(Double.class, PrecisionScale.NO_NO),
 
     /** Arbitrary-precision signed decimal number. */
-    DECIMAL,
+    DECIMAL(BigDecimal.class, PrecisionScale.YES_YES),
 
     /** Timezone-free date. */
-    DATE,
+    DATE(LocalDate.class, PrecisionScale.NO_NO),
 
     /** Timezone-free time with precision. */
-    TIME,
+    TIME(LocalTime.class, PrecisionScale.YES_NO),
 
     /** Timezone-free datetime. */
-    DATETIME,
+    DATETIME(LocalDateTime.class, PrecisionScale.YES_NO),
 
     /** Point on the time-line. Number of ticks since {@code 1970-01-01T00:00:00Z}. Tick unit depends on precision. */
-    TIMESTAMP,
+    TIMESTAMP(Instant.class, PrecisionScale.YES_NO),
 
     /** 128-bit UUID. */
-    UUID,
+    UUID(UUID.class, PrecisionScale.NO_NO),
 
     /** Bit mask. */
-    BITMASK,
+    BITMASK(BitSet.class, PrecisionScale.YES_NO),
 
     /** String. */
-    STRING,
+    STRING(String.class, PrecisionScale.YES_NO),
 
     /** Binary data. */
-    BYTE_ARRAY,
+    BYTE_ARRAY(byte[].class, PrecisionScale.YES_NO),
 
     /** Date interval. */
-    PERIOD,
+    PERIOD(Void.class, PrecisionScale.YES_NO),
 
     /** Time interval. */
-    DURATION,
+    DURATION(Duration.class, PrecisionScale.YES_NO),
 
     /** Number. */
-    NUMBER,

Review Comment:
   why we still have the type?....



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org