Skip to content

Conversation

@JoshRosen
Copy link
Contributor

While reviewing @yhuai's patch for SPARK-2205 (#7773), I noticed that Exchange's compatible check may be incorrectly returning false in many cases. As far as I know, this is not actually a problem because the compatible, meetsRequirements, and needsAnySort checks are serving only as short-circuit performance optimizations that are not necessary for correctness.

In order to reduce code complexity, I think that we should remove these checks and unconditionally rewrite the operator's children. This should be safe because we rewrite the tree in a single bottom-up pass.

@JoshRosen
Copy link
Contributor Author

/cc @marmbrus for review.

@SparkQA
Copy link

SparkQA commented Jul 30, 2015

Test build #39110 has finished for PR 7807 at commit 9d76ce9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@marmbrus
Copy link
Contributor

LGTM

@JoshRosen
Copy link
Contributor Author

Thanks. I'm going to merge this into master then will rebase the other commit.

@asfgit asfgit closed this in 3c66ff7 Jul 31, 2015
@JoshRosen JoshRosen deleted the SPARK-9489 branch August 29, 2016 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants