Skip to content

Commit 36dba0f

Browse files
committed
fix single-threaded case
1 parent 75c4e8d commit 36dba0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AggregateFunctions/AggregateFunctionUniq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ struct Adder
276276
{
277277
/// We have to introduce this template parameter (and a bunch of ugly code dealing with it), because we cannot
278278
/// add runtime branches in whatever_hash_set::insert - it will immediately pop up in the perf top.
279-
template <SetLevelHint hint = SetLevelHint::unknown>
279+
template <SetLevelHint hint = Data::is_able_to_parallelize_merge ? SetLevelHint::unknown : SetLevelHint::singleLevel>
280280
static void ALWAYS_INLINE add(Data & data, const IColumn ** columns, size_t num_args, size_t row_num)
281281
{
282282
if constexpr (Data::is_variadic)

0 commit comments

Comments
 (0)