GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/14994
[SPARK-17432][SQL] PreprocessDDL should respect case sensitivity when
checking duplicated columns
## What changes were proposed in this pull request?
In `PreprocessDDL` we will check if table columns are duplicated. However,
this checking ignores case sensitivity config(it's always case-sensitive) and
lead to different result between `HiveExternalCatalog` and `InMemoryCatalog`.
`HiveExternalCatalog` will throw exception because hive metastore is always
case-nonsensitive, and `InMemoryCatalog` is fine.
This PR fixes it.
## How was this patch tested?
a new test in DDLSuite
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark check-dup
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14994.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 #14994
----
commit 95947f693ac73f207af78a310302ee511dbd4f78
Author: Wenchen Fan <[email protected]>
Date: 2016-09-07T11:40:35Z
PreprocessDDL should respect case sensitivity when checking duplicated
columns
----
---
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]