in fluss-common/src/main/java/com/alibaba/fluss/row/indexed/IndexedRow.java [242:269]
public static boolean isFixedLength(DataType dataType) {
switch (dataType.getTypeRoot()) {
case BOOLEAN:
case TINYINT:
case SMALLINT:
case INTEGER:
case BIGINT:
case FLOAT:
case DOUBLE:
case DATE:
case TIME_WITHOUT_TIME_ZONE:
case CHAR:
case BINARY:
case TIMESTAMP_WITHOUT_TIME_ZONE:
case TIMESTAMP_WITH_LOCAL_TIME_ZONE:
return true;
case STRING:
case BYTES:
return false;
case DECIMAL:
return Decimal.isCompact(((DecimalType) dataType).getPrecision());
default:
throw new IllegalArgumentException(
String.format(
"Currently, Data type '%s' is not supported in indexedRow",
dataType));
}
}