diff options
author | Wenchen Fan <wenchen@databricks.com> | 2016-09-08 19:41:49 +0800 |
---|---|---|
committer | Wenchen Fan <wenchen@databricks.com> | 2016-09-08 19:41:49 +0800 |
commit | 3ced39df32e52170d6954a2464f84e0c9f307423 (patch) | |
tree | 94c1a6de4ed76cd3384a65293a9d0de6e8d6269c /common/network-common | |
parent | b230fb92a53375b648fa0f9e1d852270156d79e5 (diff) | |
download | spark-3ced39df32e52170d6954a2464f84e0c9f307423.tar.gz spark-3ced39df32e52170d6954a2464f84e0c9f307423.tar.bz2 spark-3ced39df32e52170d6954a2464f84e0c9f307423.zip |
[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
Author: Wenchen Fan <wenchen@databricks.com>
Closes #14994 from cloud-fan/check-dup.
Diffstat (limited to 'common/network-common')
0 files changed, 0 insertions, 0 deletions