Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

This is a followup of #32816 to simplify and improve the code:

  1. Add a SkewJoinChildWrapper to wrap the skew join children, so that EnsureRequirements rule will skip them and save time
  2. Remove SkewJoinAwareCost and keep using SimpleCost. We can put numSkews in the first 32 bits.

Why are the changes needed?

code simplification and improvement

Does this PR introduce any user-facing change?

No

How was this patch tested?

existing tests

@cloud-fan
Copy link
Contributor Author

cc @ulysses-you

@github-actions github-actions bot added the SQL label Sep 23, 2021
assert(requiredChildOrderings.length == originalChildren.length)
// Ensure that the operator's children satisfy their output distribution requirements.
var newChildren = originalChildren.zip(requiredChildDistributions).map {
var children = originalChildren.zip(requiredChildDistributions).map {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel the original name children is better, as it's a var and we keep updating it.

@SparkQA
Copy link

SparkQA commented Sep 23, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48068/

@SparkQA
Copy link

SparkQA commented Sep 23, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48068/

@SparkQA
Copy link

SparkQA commented Sep 23, 2021

Test build #143559 has finished for PR 34080 at commit 1c1dbf1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class SkewJoinChildWrapper(plan: SparkPlan) extends LeafExecNode

Copy link
Contributor

@ulysses-you ulysses-you left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@yaooqinn yaooqinn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cloud-fan
Copy link
Contributor Author

thanks for review, merging to master!

@cloud-fan cloud-fan closed this in 1b2bb38 Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants