presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/systemtables/ColumnRangesSystemTable.java/ColumnRangesSystemTable/getColumnRangesMetadataSqlQuery
class ColumnRangesSystemTable:    private static String getColumnRangesMetadataSqlQuery(RaptorTableHandle raptorTableHandle, List<TableColumn> raptorColumns)
    {
        String columns = raptorColumns.stream()
                .flatMap(column -> Stream.of(
                        format("min(%s)", minColumn(column.getColumnId())),
                        format("max(%s)", maxColumn(column.getColumnId()))))
                .collect(joining(", "));
        return format("SELECT %s FROM %s", columns, shardIndexTable(raptorTableHandle.getTableId()));
    }