Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

a follow up of #15688

How was this patch tested?

updated test in DDLSuite

@cloud-fan
Copy link
Contributor Author

cc @gatorsmile

val parts =
catalog.listPartitions(table.identifier, normalizedSpec).map(_.storage.locationUri)

for (spec <- partitionSpec if parts.isEmpty && spec.size == partCols.length) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i'd add a line of comment saying explicitly we fail if the partition spec is fully specified (not partial) and the partition does not exist.

@rxin
Copy link
Contributor

rxin commented Nov 8, 2016

LGTM otherwise.

spark.sessionState.conf.resolver)
}
catalog.listPartitions(table.identifier, normalizedSpec).map(_.storage.locationUri)
val parts =
Copy link
Member

Choose a reason for hiding this comment

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

Nit: How about partLocations?

@gatorsmile
Copy link
Member

LGTM except a minor comment and test pending Jenkins

@rxin
Copy link
Contributor

rxin commented Nov 8, 2016

LGTM pending Jenkins.

@SparkQA
Copy link

SparkQA commented Nov 8, 2016

Test build #68321 has finished for PR 15805 at commit 1b81c12.

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

@SparkQA
Copy link

SparkQA commented Nov 8, 2016

Test build #68328 has finished for PR 15805 at commit 0c18e27.

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

asfgit pushed a commit that referenced this pull request Nov 8, 2016
…hed for the given non-partial partition spec

## What changes were proposed in this pull request?

a follow up of #15688

## How was this patch tested?

updated test in `DDLSuite`

Author: Wenchen Fan <[email protected]>

Closes #15805 from cloud-fan/truncate.

(cherry picked from commit 73feaa3)
Signed-off-by: Wenchen Fan <[email protected]>
@cloud-fan
Copy link
Contributor Author

cloud-fan commented Nov 8, 2016

thanks for the review, merging to master/2.1!

@asfgit asfgit closed this in 73feaa3 Nov 8, 2016
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…hed for the given non-partial partition spec

## What changes were proposed in this pull request?

a follow up of apache#15688

## How was this patch tested?

updated test in `DDLSuite`

Author: Wenchen Fan <[email protected]>

Closes apache#15805 from cloud-fan/truncate.
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