fix determine partitions partitioner to work in local mode