presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/storage/ColumnIndexStatsUtils.java/ColumnIndexStatsUtils/jdbcType
class ColumnIndexStatsUtils:    public static JDBCType jdbcType(Type type)
    {
        if (type.equals(BOOLEAN)) {
            return JDBCType.BOOLEAN;
        }
        if (type.equals(BIGINT) || type.equals(TIMESTAMP)) {
            return JDBCType.BIGINT;
        }
        if (type.equals(INTEGER)) {
            return JDBCType.INTEGER;
        }
        if (type.equals(DOUBLE)) {
            return JDBCType.DOUBLE;
        }
        if (type.equals(DATE)) {
            return JDBCType.INTEGER;
        }
        if (type instanceof VarcharType) {
            return JDBCType.VARBINARY;
        }
        return null;
    }