kasakrisz opened a new pull request #2991: URL: https://github.com/apache/hive/pull/2991
### What changes were proposed in this pull request? When inserting into partitioned tables the list of affected partitions are provided by Dynamic partitioning when updating Statistics. Reload the Partition objects from HMS when `BasicStatsTask` gets them. ### Why are the changes needed? All write branches/entities of sql statements has its own `BasicStatsTask` instance which updates the stats of the partition when the statement finished execution. The Tasks are executed sequentially however the state of partitions were loaded only once from metastore by Dynamic partitioning so each `BasicStatsTask` updated the same staring state. ### 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.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]
