You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/07/06 10:59:22 UTC

[GitHub] [ignite-3] AMashenkov commented on a diff in pull request #916: IGNITE-17203 SQL API: Implement scale and precision metadata

AMashenkov commented on code in PR #916:
URL: https://github.com/apache/ignite-3/pull/916#discussion_r914705770


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/type/IgniteTypeFactory.java:
##########
@@ -163,30 +161,72 @@ public Type getJavaClass(RelDataType type) {
     }
 
     /**
-     * Gets ColumnType type for given class.
+     * Gets ColumnType type for RelDataType.
      *
      * @param relType Rel type.
      * @return ColumnType type or null.
      */
-    public ColumnType columnType(RelDataType relType) {
-        assert relType != null;
+    public static ColumnType relDataTypeToColumnType(RelDataType relType) {
+        assert relType instanceof BasicSqlType

Review Comment:
   https://issues.apache.org/jira/browse/IGNITE-17219
   https://issues.apache.org/jira/browse/IGNITE-17298



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