Skip to content

Conversation

@Ngone51
Copy link
Member

@Ngone51 Ngone51 commented Jan 18, 2019

What changes were proposed in this pull request?

Followup of #20091. We could also use existing partitioner when defaultNumPartitions is equal to the maxPartitioner's numPartitions.

How was this patch tested?

Existed.

@Ngone51
Copy link
Member Author

Ngone51 commented Jan 18, 2019

ping @cloud-fan @jiangxb1987 @mridulm @sujithjay .

Please take a look, thanks :)

@Ngone51 Ngone51 changed the title [SPARK-22465][FOLLOWUP]Use existing partitioner when defaultNumPartitions is equal to maxPartitioner.numPartitions [SPARK-22465][CORE][FOLLOWUP]Use existing partitioner when defaultNumPartitions is equal to maxPartitioner.numPartitions Jan 18, 2019
@Ngone51
Copy link
Member Author

Ngone51 commented Jan 21, 2019

kindly ping

@cloud-fan
Copy link
Contributor

ok to test

@SparkQA
Copy link

SparkQA commented Jan 21, 2019

Test build #101482 has finished for PR 23581 at commit 5dd871a.

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

@Ngone51
Copy link
Member Author

Ngone51 commented Jan 22, 2019

retest this please.

}

// If the existing max partitioner is an eligible one, or its partitions number is larger
// than the default number of partitions, use the existing partitioner.
Copy link
Contributor

Choose a reason for hiding this comment

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

shall we update the comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

sure.

@cloud-fan
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Jan 22, 2019

Test build #101505 has finished for PR 23581 at commit 5dd871a.

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

@SparkQA
Copy link

SparkQA commented Jan 22, 2019

Test build #101507 has finished for PR 23581 at commit 44f632b.

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

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 3da71f2 Jan 23, 2019
@Ngone51
Copy link
Member Author

Ngone51 commented Jan 23, 2019

Thanks @cloud-fan @srowen !

jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…mPartitions is equal to maxPartitioner.numPartitions

## What changes were proposed in this pull request?

Followup of apache#20091. We could also use existing partitioner when defaultNumPartitions is equal to the maxPartitioner's numPartitions.

## How was this patch tested?

Existed.

Closes apache#23581 from Ngone51/dev-use-existing-partitioner-when-defaultNumPartitions-equalTo-MaxPartitioner#-numPartitions.

Authored-by: Ngone51 <ngone_5451@163.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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants