presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/systemtables/PreparedStatementBuilder.java/PreparedStatementBuilder/typeToSqlType
class PreparedStatementBuilder:    private static int typeToSqlType(Type type)
    {
        if (type.equals(BIGINT)) {
            return Types.BIGINT;
        }
        if (type.equals(DOUBLE)) {
            return Types.DOUBLE;
        }
        if (type.equals(BOOLEAN)) {
            return Types.BOOLEAN;
        }
        if (isVarcharType(type)) {
            return Types.VARCHAR;
        }
        if (type.equals(VARBINARY)) {
            return Types.VARBINARY;
        }
        throw new IllegalArgumentException("Unknown type: " + type);
    }