HIVE-26355: Column compare should be case insensitive for name#3406
HIVE-26355: Column compare should be case insensitive for name#3406pvary merged 2 commits intoapache:masterfrom
Conversation
|
Maybe we should convert the incoming column names "immediately" to lower case, otherwise other methods like ( |
|
I have also considered to convert the column names at the top method like |
Could you please add a javadoc which describes that the methods are case independent? |
Done. |
…r Yu reviewed by Peter Vary) (apache#3406)
…r Yu reviewed by Peter Vary) (apache#3406)
What changes were proposed in this pull request?
Fix a bug in comparing column fields between old table and new table.
Why are the changes needed?
Hive is case-insensitive in field name, but some engines are case-sensitive, so when calling
alter_tablethe existing column name may not be equal because of the case.Does this PR introduce any user-facing change?
No
How was this patch tested?
We add two unit tests, can be run with command:
$ mvn test -Dtest=org.apache.hadoop.hive.metastore.utils.TestMetaStoreServerUtils -pl :hive-standalone-metastore-server