in java/clickhouse-client/src/main/java/com/epam/deltix/clickhouse/util/ParseHelper.java [198:230]
private static SqlDataType getDefaultDataTypeByClass(Class<?> clazz) {
if (isStringDataType(clazz))
return new StringDataType();
else if (isDateTimeDataType(clazz))
return new DateTime64DataType();
else if (isDateDataType(clazz))
return new DateDataType();
else if (isInt64DataType(clazz))
return new Int64DataType();
else if (isInt32DataType(clazz))
return new Int32DataType();
else if (isInt16DataType(clazz))
return new Int16DataType();
else if (isInt8DataType(clazz))
return new Int8DataType();
else if (isFloat64DataType(clazz))
return new Float64DataType();
else if (isFloat32DataType(clazz))
return new Float32DataType();
else if (isUInt8DataType(clazz))
return new UInt8DataType();
else if (isDecimalDataType(clazz))
return new Decimal128DataType(DEFAULT_DECIMAL_SCALE);
else if (clazz.isEnum())
return new Enum8DataType(getEnumValues(clazz));
//todo support UUIDDataType
/*else if (clazz.equals(UUID.class)) {
return new UUIDDataType();
}*/
throw notImplementedException(clazz);
}