Skip to content

Conversation

@maryannxue
Copy link
Contributor

What changes were proposed in this pull request?

This is a minor code refactoring PR. It creates an adaptive execution context class to wrap objects shared across main query and sub-queries.

Why are the changes needed?

This refactoring will improve code readability and reduce the number of parameters used to initialize AdaptiveSparkPlanExec.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Passed existing UTs.

@maryannxue maryannxue changed the title [SPARK-30315] Add adaptive execution context [SPARK-30315][SQL] Add adaptive execution context Dec 20, 2019
@SparkQA
Copy link

SparkQA commented Dec 20, 2019

Test build #115601 has finished for PR 26959 at commit 545e969.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class AdaptiveExecutionContext(session: SparkSession)
  • case class InsertAdaptiveSparkPlan(

@cloud-fan
Copy link
Contributor

retest this please

case class AdaptiveSparkPlanExec(
initialPlan: SparkPlan,
@transient session: SparkSession,
@transient adaptiveExecutionContext: AdaptiveExecutionContext,
Copy link
Contributor

Choose a reason for hiding this comment

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

for simplicity, we can just name it context.

@SparkQA
Copy link

SparkQA commented Dec 20, 2019

Test build #115619 has finished for PR 26959 at commit 545e969.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class AdaptiveExecutionContext(session: SparkSession)
  • case class InsertAdaptiveSparkPlan(

@cloud-fan
Copy link
Contributor

retest it please

@SparkQA
Copy link

SparkQA commented Jan 8, 2020

Test build #116282 has finished for PR 26959 at commit 9e0373b.

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

@cloud-fan
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Jan 8, 2020

Test build #116293 has finished for PR 26959 at commit 9e0373b.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Jan 8, 2020

Test build #116306 has finished for PR 26959 at commit 9e0373b.

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

@SparkQA
Copy link

SparkQA commented Jan 8, 2020

Test build #116315 has finished for PR 26959 at commit a113640.

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

Copy link
Member

@gatorsmile gatorsmile left a comment

Choose a reason for hiding this comment

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

Thanks! Merged to master.

@gatorsmile gatorsmile closed this in af2d3d0 Jan 9, 2020
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.

5 participants