in common/src/main/java/org/apache/drill/common/types/Types.java [636:696]
public static MinorType getMinorTypeFromName(String typeName) {
typeName = typeName.toLowerCase();
switch (typeName) {
case "bool":
case "boolean":
return MinorType.BIT;
case "tinyint":
return MinorType.TINYINT;
case "uint1":
return MinorType.UINT1;
case "smallint":
return MinorType.SMALLINT;
case "uint2":
return MinorType.UINT2;
case "integer":
case "int":
return MinorType.INT;
case "uint4":
return MinorType.UINT4;
case "bigint":
return MinorType.BIGINT;
case "uint8":
return MinorType.UINT8;
case "float":
return MinorType.FLOAT4;
case "double":
return MinorType.FLOAT8;
case "decimal":
return MinorType.VARDECIMAL;
case "symbol":
case "char":
case "utf8":
case "varchar":
return MinorType.VARCHAR;
case "utf16":
case "string":
case "var16char":
return MinorType.VAR16CHAR;
case "timestamp":
return MinorType.TIMESTAMP;
case "interval_year_month":
return MinorType.INTERVALYEAR;
case "interval_day_time":
return MinorType.INTERVALDAY;
case "date":
return MinorType.DATE;
case "time":
return MinorType.TIME;
case "binary":
return MinorType.VARBINARY;
case "json":
case "simplejson":
case "extendedjson":
return MinorType.LATE;
case "null":
case "any":
return MinorType.NULL;
default:
throw new UnsupportedOperationException("Could not determine type: " + typeName);
}
}