mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
cosmetics
This commit is contained in:
parent
43b836adc1
commit
4c16f7a70f
@ -1,5 +1,5 @@
|
||||
#include <Functions/FunctionFactory.h>
|
||||
#include <Functions/FunctionsRandom.h>
|
||||
#include <Functions/FunctionFactory.h>
|
||||
#include <Functions/VectorExtension.h>
|
||||
#include <Common/HashTable/Hash.h>
|
||||
#include <Common/randomSeed.h>
|
||||
|
@ -122,14 +122,7 @@ namespace detail
|
||||
/// And in that case prefer variant with less number of invocations.
|
||||
|
||||
if (adjustedCount() < 2)
|
||||
{
|
||||
// TODO(dakovalkov): rewrite it.
|
||||
int all_count = adjustedCount() + running_count;
|
||||
if (all_count < 3)
|
||||
return all_count - 2;
|
||||
else
|
||||
return adjustedCount() + running_count * 100;
|
||||
}
|
||||
return adjustedCount() - 1 + running_count;
|
||||
return std::normal_distribution<>(mean(), sigma())(stat_rng);
|
||||
}
|
||||
};
|
||||
|
@ -1,4 +1,6 @@
|
||||
<test max_ignored_relative_change="0.2">
|
||||
<!-- <test max_ignored_relative_change="0.2">
|
||||
TODO(dakovalkov): uncomment it -->
|
||||
<test>
|
||||
<substitutions>
|
||||
<substitution>
|
||||
<name>gp_hash_func</name>
|
||||
|
Loading…
Reference in New Issue
Block a user