GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/16848
[SPARK-19279][SQL][Follow-up] Infer Schema for Hive Serde Tables
### 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
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark inferHiveSerdeSchema
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16848.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #16848
----
commit 342d749068f345841f8bb64b350b0e04348b3a7f
Author: gatorsmile <[email protected]>
Date: 2017-02-08T04:00:45Z
fix.
commit 1146f2676e57ac412acdea9b3ea4619194bedb4b
Author: gatorsmile <[email protected]>
Date: 2017-02-08T04:12:27Z
style
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]