yiqijiu opened a new pull request, #5556: URL: https://github.com/apache/hive/pull/5556
### What changes were proposed in this pull request? <!-- While reviewing the Statistics class, I found an issue where adding long values could result in a negative number due to overflow. --> ### Why are the changes needed? <!-- When datasize has a very large value, addition can result in a negative number. public void addBasicStats(Statistics stats) { dataSize += stats.dataSize; numRows += stats.numRows; basicStatsState = inferColumnStatsState(basicStatsState, stats.basicStatsState); } @Deprecated public void addToDataSize(long rds) { dataSize += rds; } --> ### Does this PR introduce _any_ user-facing change? <!-- No --> ### Is the change a dependency upgrade? <!-- No --> ### How was this patch tested? <!-- Reused the existing API without making any logical changes, so no unit tests were added. --> -- 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