zstan commented on code in PR #5870: URL: https://github.com/apache/ignite-3/pull/5870#discussion_r2104408694
########## modules/api/src/main/java/org/apache/ignite/sql/ColumnType.java: ########## @@ -123,6 +128,15 @@ public enum ColumnType { this.scaleAllowed = scaleDefined; this.lengthAllowed = lengthDefined; this.id = id; + + fixedSize = !((precisionAllowed && scaleAllowed) || lengthAllowed); + } + + /** + * Get fixed length flag: {@code true} for fixed-length types, {@code false} otherwise. + */ + public boolean fixedLength() { Review Comment: moved ########## 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) { Review Comment: done -- 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