zstan commented on code in PR #5870: URL: https://github.com/apache/ignite-3/pull/5870#discussion_r2104409373
########## modules/api/src/main/java/org/apache/ignite/sql/ColumnType.java: ########## @@ -150,8 +164,14 @@ public int id() { return id; } - /** Returns corresponding {@code ColumnType} by given id, {@code null} for unknown id. */ - public static @Nullable ColumnType getById(int id) { + /** Returns the {@link ColumnType} instance by its id, or {@code null} if the id is invalid. */ + public static @Nullable ColumnType fromId(int id) { return id >= 0 && id < VALS.length ? VALS[id] : null; } + + // TODO https://issues.apache.org/jira/browse/IGNITE-17373 Remove filter after this issue is resolved + @TestOnly Review Comment: move to NativeType -- 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-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org