Skip to content
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

[SPARK-30213][SQL] Remove the mutable status in ShuffleQueryStageExec #26846

Closed
wants to merge 2 commits into from

Conversation

JkSelf
Copy link
Contributor

@JkSelf JkSelf commented Dec 11, 2019

What changes were proposed in this pull request?

Currently ShuffleQueryStageExec contain the mutable status, eg mapOutputStatisticsFuture variable. So It is not easy to pass when we copy ShuffleQueryStageExec. This PR will put the mapOutputStatisticsFuture variable from ShuffleQueryStageExec to ShuffleExchangeExec. And then we can pass the value of mapOutputStatisticsFuture when copying.

Why are the changes needed?

In order to remove the mutable status in ShuffleQueryStageExec

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing uts

@JkSelf
Copy link
Contributor Author

JkSelf commented Dec 11, 2019

Please help to retest. Thanks.

@SparkQA
Copy link

SparkQA commented Dec 11, 2019

Test build #115152 has finished for PR 26846 at commit 7ab903c.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -64,6 +66,14 @@ case class ShuffleExchangeExec(

@transient lazy val inputRDD: RDD[InternalRow] = child.execute()

@transient lazy val mapOutputStatisticsFuture: Future[MapOutputStatistics] = {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a comment saying that this is only needed in AQE?

@cloud-fan
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Dec 11, 2019

Test build #115160 has finished for PR 26846 at commit 7ab903c.

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

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-30213] [SQL]Remove the mutable status in ShuffleQueryStageExec [SPARK-30213][SQL] Remove the mutable status in ShuffleQueryStageExec Dec 11, 2019
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM (with +1 for @cloud-fan 's comment).

@JkSelf
Copy link
Contributor Author

JkSelf commented Dec 12, 2019

@cloud-fan @dongjoon-hyun add the comments. Thanks

@dongjoon-hyun
Copy link
Member

Merged to master. (The last commit is only adding a comment.)
Thank you, @JkSelf and @cloud-fan .

@SparkQA
Copy link

SparkQA commented Dec 12, 2019

Test build #115205 has finished for PR 26846 at commit ce80397.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants