String[] typeStrings = {
"void", "boolean", "tinyint", "smallint", "int", "bigint", "float", "double",
"string", "timestamp", "date", "binary", "decimal", "varchar(10)", "varchar(5)",
};
for (String cat1 : typeStrings) {
TypeInfo ti1 = null;
try {
ti1 = TypeInfoUtils.getTypeInfoFromTypeString(cat1);
} catch (Exception err) {
System.out.println(err);
System.out.println("Unable to get TypeInfo for " + cat1 + ", skipping ...");
continue;
}
for (String cat2 : typeStrings) {
TypeInfo commonClass = null;
boolean implicitConvertable = false;
try {
TypeInfo ti2 = TypeInfoUtils.getTypeInfoFromTypeString(cat2);
try {
commonClass = FunctionRegistry.getCommonClassForComparison(ti1, ti2);
//implicitConvertable = FunctionRegistry.implicitConvertable(ti1, ti2);
} catch (Exception err) {
System.out.println("Failed to get common class for " + ti1 + ", " + ti2 + ": " + err);