presto-main/src/main/java/io/prestosql/sql/planner/optimizations/ActualProperties.java/Global/isStreamRepartitionEffective
class Global:        private boolean isStreamRepartitionEffective(Collection<Symbol> keys, Set<Symbol> constants)
        {
            return (!streamPartitioning.isPresent() || streamPartitioning.get().isRepartitionEffective(keys, constants)) && !nullsAndAnyReplicated;
        }