kasakrisz opened a new pull request #3020: URL: https://github.com/apache/hive/pull/3020
### What changes were proposed in this pull request? HIVE-23949 introduces a caching layer between HS2 and HMS. This patch extend alter partition HMS API call with invalidating cached `Partition` entries after successful alter partition calls. Alter partition calls has several versions but only the one which depends on the `writeIdList` is affected. ### Why are the changes needed? Subsequent `getPartitionsByNames` calls return the cached `Partition` objects however alter partition may changed the underlying Partitions and the changes are not reflected in the cache objects. This can lead to data correctness issues for example when computing stats. ### Does this PR introduce _any_ user-facing change? Yes. Incorrect results are fixed. ### How was this patch tested? ``` mvn test -Dtest.output.overwrite -DskipSparkTests -Dtest=TestMiniLlapLocalCliDriver -Dqfile=stats_part_multi_insert_acid.q -pl itests/qtest -Pitests ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
