presto-spi/src/main/java/io/prestosql/spi/connector/GroupingProperty.java/GroupingProperty/constrain
class GroupingProperty:    @Override
    public LocalProperty<E> constrain(Set<E> columns)
    {
        if (!this.columns.containsAll(columns)) {
            throw new IllegalArgumentException(format("Cannot constrain %s with %s", this, columns));
        }

        return new GroupingProperty<>(columns);
    }