vihangk1 opened a new pull request #2336: URL: https://github.com/apache/hive/pull/2336
### What changes were proposed in this pull request? hive.metastore.disallow.incompatible.col.type.check config currently checks if a alter table operation is making a incompatible schema change to the table. By default it is set to true which would error out the alter table call when such a change is detected. However, this change is too restrictive for certain file-formats like Kudu. In case of Kudu, it is allowed to drop a column which could result in the schema to be incompatible according to current implementation of this check. This causes a bad user-experience for Kudu users and there is no real work-around than to disable this check all together. Disabling the check is not an option since for file-formats like Parquet this is should be true to avoid data corruption/incorrect results. This change introduces a new config which can be used by users to provide a exception list based on table serde library name. If a table belongs to such a serde, the check is skipped. By default currently, only Kudu tables are added to this config. ### Why are the changes needed? See above. ### Does this PR introduce _any_ user-facing change? This introduces a new configuration option for metastore. ### How was this patch tested? A new unit-test was added to exercise the specific use-case. Existing tests make sure that previous behavior is not changed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
