thomasrebele opened a new pull request, #6036: URL: https://github.com/apache/hive/pull/6036
### What changes were proposed in this pull request? The TestVectorAggregation took 63s on my laptop due to a slow implementation of getLinearRandomNumber. I propose to replace the for loop with an analytical solution (HIVE-29155). With the patch, TestVectorAggregation takes only 23s. I've added javadoc to the method to make it easier to understand what the method is doing. I hope it is OK to remove some unused imports as well. ### Why are the changes needed? TestVectorAggregation is slower than necessary, therefore consuming resources (time & CPU) in the CI and machines of developers. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manual test that the distribution of generated numbers stays the same. See attachment of HIVE-29155. TestVectorAggregation was executed and passes. -- 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