presto-spi/src/main/java/io/prestosql/spi/type/RowType.java/RowType/isComparable
class RowType:    @Override
    public boolean isComparable()
    {
        return fields.stream().allMatch(field -> field.getType().isComparable());
    }