Auto determine partitioner when it is needed.