lowka commented on code in PR #2964:
URL: https://github.com/apache/ignite-3/pull/2964#discussion_r1430937186
##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/CatalogUtils.java:
##########
@@ -125,10 +125,16 @@ public class CatalogUtils {
private static final Map<ColumnType, Set<ColumnType>>
ALTER_COLUMN_TYPE_TRANSITIONS = new EnumMap<>(ColumnType.class);
static {
- ALTER_COLUMN_TYPE_TRANSITIONS.put(ColumnType.INT8,
EnumSet.of(ColumnType.INT16, ColumnType.INT32, ColumnType.INT64));
Review Comment:
Maybe we can initialise this map of supported conversions for all types so
that for every type `T` `isSupportedColumnTypeChange(T, T)` always
returns`true` ?
--
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]