Combines adjacent Repartition and RepartitionByExpression operator combinations
by keeping only the one.
1. For adjacent Repartitions, collapse into the last Repartition.
2. For adjacent RepartitionByExpressions, collapse into the last RepartitionByExpression.
3. For a combination of Repartition and RepartitionByExpression, collapse as a single
RepartitionByExpression with the expression and last number of partition.
Combines adjacent Repartition and RepartitionByExpression operator combinations by keeping only the one. 1. For adjacent Repartitions, collapse into the last Repartition. 2. For adjacent RepartitionByExpressions, collapse into the last RepartitionByExpression. 3. For a combination of Repartition and RepartitionByExpression, collapse as a single RepartitionByExpression with the expression and last number of partition.