presto-main/src/main/java/io/prestosql/sql/planner/optimizations/ActualProperties.java/Global/isCompatibleTablePartitioningWith
class Global:        private boolean isCompatibleTablePartitioningWith(Partitioning partitioning, boolean nullsAndAnyReplicated, Metadata metadata, Session session)
        {
            return nodePartitioning.isPresent() && nodePartitioning.get().isCompatibleWith(partitioning, metadata, session) && this.nullsAndAnyReplicated == nullsAndAnyReplicated;
        }