Miscellaneous [#CLICKHOUSE-3].

This commit is contained in:
Alexey Milovidov 2017-11-09 16:44:08 +03:00
parent 0919ae6338
commit 90ca758522
2 changed files with 2 additions and 2 deletions

View File

@ -693,7 +693,7 @@ void NO_INLINE Aggregator::executeWithoutKeyImpl(
/// Optimization in the case of a single aggregate function `count`.
AggregateFunctionCount * agg_count = params.aggregates_size == 1
? typeid_cast<AggregateFunctionCount *>(aggregate_functions[0])
: NULL;
: nullptr;
if (agg_count)
agg_count->addDelta(res, rows);

View File

@ -222,7 +222,7 @@ void NO_INLINE Aggregator::executeSpecializedWithoutKey(
/// Optimization in the case of a single aggregate function `count`.
AggregateFunctionCount * agg_count = params.aggregates_size == 1
? typeid_cast<AggregateFunctionCount *>(aggregate_functions[0])
: NULL;
: nullptr;
if (agg_count)
agg_count->addDelta(res, rows);