Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Nov 23, 2016

What changes were proposed in this pull request?

This PR addressed the rest comments in #15951.

How was this patch tested?

Jenkins

} else {
// in streaming mode, we have already inferred and registered partition columns, we will
// never have to materialize the lazy val below
lazy val inferredPartitions = tempFileCatalog.partitionSchema
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this lazy val so that it's easy to track when tempFileCatalog is materialized.

// maintain old behavior before SPARK-18510. If userSpecifiedSchema is empty used inferred
// partitioning
if (userSpecifiedSchema.isEmpty) {
val inferredPartitions = tempFileIndex.partitionSchema
Copy link
Member Author

Choose a reason for hiding this comment

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

Still keep the inferredPartitions variable to document the meaning of tempFileIndex.partitionSchema.

@zsxwing
Copy link
Member Author

zsxwing commented Nov 23, 2016

cc @brkyvz @tdas @liancheng

@tdas
Copy link
Contributor

tdas commented Nov 23, 2016

LGTM pending tests.

@SparkQA
Copy link

SparkQA commented Nov 24, 2016

Test build #69088 has finished for PR 15997 at commit b127184.

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

@tdas
Copy link
Contributor

tdas commented Nov 24, 2016

Merging to master and 2.1

asfgit pushed a commit that referenced this pull request Nov 24, 2016
## What changes were proposed in this pull request?

This PR addressed the rest comments in #15951.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #15997 from zsxwing/SPARK-18510-follow-up.

(cherry picked from commit 223fa21)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
@asfgit asfgit closed this in 223fa21 Nov 24, 2016
@zsxwing zsxwing deleted the SPARK-18510-follow-up branch November 24, 2016 00:34
robert3005 pushed a commit to palantir/spark that referenced this pull request Dec 2, 2016
## What changes were proposed in this pull request?

This PR addressed the rest comments in apache#15951.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <shixiong@databricks.com>

Closes apache#15997 from zsxwing/SPARK-18510-follow-up.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
## What changes were proposed in this pull request?

This PR addressed the rest comments in apache#15951.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <shixiong@databricks.com>

Closes apache#15997 from zsxwing/SPARK-18510-follow-up.
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