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-44287][SQL][FOLLOWUP] Set partition index correctly #42185

Closed
wants to merge 1 commit into from

Conversation

cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

This is a followup of #41839, to set the partition index correctly even if it's not used for now. It also contains a few code cleanup.

Why are the changes needed?

future-proof

Does this PR introduce any user-facing change?

no

How was this patch tested?

existing tests

@cloud-fan
Copy link
Contributor Author

cc @vinodkc @viirya

@@ -279,40 +279,36 @@ class SparkSessionExtensionSuite extends SparkFunSuite with SQLHelper {
}
withSession(extensions) { session =>
session.conf.set(SQLConf.ADAPTIVE_EXECUTION_ENABLED, enableAQE)
Seq(true, false).foreach { enableEvaluator =>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to the previous discussion, we don't need to test it as we are already using the evaluator by default, and we can test RDD#mapPartitionsWithEvaluator when we use it by default.

@cloud-fan cloud-fan closed this in bf1bbc5 Jul 28, 2023
cloud-fan added a commit that referenced this pull request Jul 28, 2023
### What changes were proposed in this pull request?

This is a followup of #41839, to set the partition index correctly even if it's not used for now. It also contains a few code cleanup.

### Why are the changes needed?

future-proof

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

existing tests

Closes #42185 from cloud-fan/follow.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit bf1bbc5)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@cloud-fan
Copy link
Contributor Author

thanks for the review, merging to master/3.5!

Copy link
Contributor

@beliefer beliefer left a comment

Choose a reason for hiding this comment

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

See this later. LGTM.
I will fix the same issue I am responsible for.

ragnarok56 pushed a commit to ragnarok56/spark that referenced this pull request Mar 2, 2024
### What changes were proposed in this pull request?

This is a followup of apache#41839, to set the partition index correctly even if it's not used for now. It also contains a few code cleanup.

### Why are the changes needed?

future-proof

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

existing tests

Closes apache#42185 from cloud-fan/follow.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
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