Merge pull request #3512 from lapkofear/amd_perf_problem

fixed group by int16 and Date types on AMD EPYC 7401P machine
This commit is contained in:
alexey-milovidov 2018-11-04 11:53:38 +03:00 committed by GitHub
commit c25e093b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1475,7 +1475,7 @@ void NO_INLINE Aggregator::mergeDataImpl(
Table & table_src,
Arena * arena) const
{
for (auto it = table_src.begin(); it != table_src.end(); ++it)
for (auto it = table_src.begin(), end = table_src.end(); it != end; ++it)
{
decltype(it) res_it;
bool inserted;