Skip to content

Conversation

@gatorsmile
Copy link
Member

What changes were proposed in this pull request?

table.schema is always not empty for partitioned tables, because table.schema also contains the partitioned columns, even if the original table does not have any column. This PR is to fix the issue.

How was this patch tested?

Added a test case

@cloud-fan
Copy link
Contributor

LGTM

@SparkQA
Copy link

SparkQA commented Feb 8, 2017

Test build #72556 has finished for PR 16848 at commit 1146f26.

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

@gatorsmile
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented Feb 8, 2017

Test build #72565 has started for PR 16848 at commit 1146f26.

@cloud-fan
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Feb 8, 2017

Test build #72577 has finished for PR 16848 at commit 1146f26.

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

@gatorsmile
Copy link
Member Author

Thanks! Merging to master.

@asfgit asfgit closed this in 4d4d0de Feb 8, 2017
cmonkey pushed a commit to cmonkey/spark that referenced this pull request Feb 15, 2017
### What changes were proposed in this pull request?
`table.schema` is always not empty for partitioned tables, because `table.schema` also contains the partitioned columns, even if the original table does not have any column. This PR is to fix the issue.

### How was this patch tested?
Added a test case

Author: gatorsmile <[email protected]>

Closes apache#16848 from gatorsmile/inferHiveSerdeSchema.
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