wecharyu opened a new pull request, #4744: URL: https://github.com/apache/hive/pull/4744
### What changes were proposed in this pull request? 1. Remove CAT_NAME, DB_NAME and TABLE_NAME from `TAB_COL_STATS` table. 2. Remove CAT_NAME, DB_NAME, TABLE_NAME and PARTITION_NAME columns from `PART_COL_STATS` table. ### Why are the changes needed? 1. Refine the metadata schema, remove redundant columns of TAB_COL_STATS and PART_COL_STATS 2. Unify get table stats, update table stats and delete table stats, make sure all query use the join clause to avoid data inconsistency. ### Does this PR introduce _any_ user-facing change? No. ### Is the change a dependency upgrade? No. ### How was this patch tested? Add a new unit test. -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org