[ https://issues.apache.org/jira/browse/SPARK-40105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
XiDuo You updated SPARK-40105: ------------------------------ 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. was: If cte can not inlined, the ReplaceCTERefWithRepartition will add repartition to force a shuffle so that the reference can reuse shuffle exchange. It can not be optimized by AQE since it has defined shuffle partition. > Improve repartition in ReplaceCTERefWithRepartition > --------------------------------------------------- > > Key: SPARK-40105 > URL: https://issues.apache.org/jira/browse/SPARK-40105 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.4.0 > Reporter: XiDuo You > Priority: Minor > > 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. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org