Skip to content

Conversation

@gatorsmile
Copy link
Member

@gatorsmile gatorsmile commented Feb 20, 2017

What changes were proposed in this pull request?

outputOrdering is also dependent on whether the bucket has more than one files. The test cases fail when we try to move them to sql/core. This PR is to fix the test cases introduced in #14864 and add a test case to verify the related logics.

How was this patch tested?

N/A

@gatorsmile
Copy link
Member Author

cc @tejasapatil @cloud-fan

joinCondition: (DataFrame, DataFrame) => Column,
shuffleLeft: Boolean,
shuffleRight: Boolean,
numPartitions: Int = 10,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since other vars are for left and right side, wondering if same could to be done for numPartitions. ie. numPartitionsLeft and numPartitionsRight.

That could make the new test you added more interesting :

 numPartitionsLeft = 1,
 numPartitionsRight = 10,
 sortLeft = false,
 sortRight = true

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, let me do it.

@SparkQA
Copy link

SparkQA commented Feb 20, 2017

Test build #73135 has finished for PR 16994 at commit d158ce1.

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

@SparkQA
Copy link

SparkQA commented Feb 20, 2017

Test build #73140 has finished for PR 16994 at commit f1569bf.

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

@SparkQA
Copy link

SparkQA commented Feb 20, 2017

Test build #73142 has finished for PR 16994 at commit 4b73130.

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

@tejasapatil
Copy link
Contributor

LGTM

@gatorsmile
Copy link
Member Author

Thanks! Merging to master.

@asfgit asfgit closed this in ead4ba0 Feb 20, 2017
Yunni pushed a commit to Yunni/spark that referenced this pull request Feb 27, 2017
…dering` information

### What changes were proposed in this pull request?
`outputOrdering` is also dependent on whether the bucket has more than one files. The test cases fail when we try to move them to sql/core. This PR is to fix the test cases introduced in apache#14864 and add a test case to verify [the related logics](https://github.com/tejasapatil/spark/blob/070c24994747c0479fb2520774ede27ff1cf8cac/sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala#L197-L206).

### How was this patch tested?
N/A

Author: Xiao Li <[email protected]>

Closes apache#16994 from gatorsmile/bucketingTS.
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