-
Notifications
You must be signed in to change notification settings - Fork 29.2k
[SPARK-43021][SQL] CoalesceBucketsInJoin not work when using AQE
#40688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,7 @@ import org.apache.spark.sql.catalyst.util.sideBySide | |
| import org.apache.spark.sql.errors.QueryExecutionErrors | ||
| import org.apache.spark.sql.execution._ | ||
| import org.apache.spark.sql.execution.adaptive.AdaptiveSparkPlanExec._ | ||
| import org.apache.spark.sql.execution.bucketing.DisableUnnecessaryBucketedScan | ||
| import org.apache.spark.sql.execution.bucketing.{CoalesceBucketsInJoin, DisableUnnecessaryBucketedScan} | ||
| import org.apache.spark.sql.execution.columnar.InMemoryTableScanExec | ||
| import org.apache.spark.sql.execution.exchange._ | ||
| import org.apache.spark.sql.execution.ui.{SparkListenerSQLAdaptiveExecutionUpdate, SparkListenerSQLAdaptiveSQLMetricUpdates, SQLPlanMetric} | ||
|
|
@@ -117,7 +117,10 @@ case class AdaptiveSparkPlanExec( | |
| // around this case. | ||
| val ensureRequirements = | ||
| EnsureRequirements(requiredDistribution.isDefined, requiredDistribution) | ||
| // CoalesceBucketsInJoin can help eliminate shuffles and must be run before | ||
| // EnsureRequirements | ||
| Seq( | ||
| CoalesceBucketsInJoin, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shall we put it in
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rules in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In my test , the UT run failed if
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we spend a bit of time understanding why? Then we can write a code comment to explain it and future developers won't try to move this rule to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah , I will provide detailed information and supplement it .
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| RemoveRedundantProjects, | ||
| ensureRequirements, | ||
| AdjustShuffleExchangePosition, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.