Description
If cte can not inlined, the ReplaceCTERefWithRepartition will add repartition to force a shuffle so that the reference can reuse shuffle exchange.
The added repartition should be optimized by AQE for better performance.
If the user has specified a rebalance, the ReplaceCTERefWithRepartition should skip add repartition.