From 1ba80c67687298b8be39d66c594fce6525d369c8 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 24 Dec 2017 02:06:59 +0300 Subject: [PATCH] Fixed typo [#CLICKHOUSE-2]. --- dbms/src/AggregateFunctions/AggregateFunctionArray.h | 10 +++++----- dbms/src/AggregateFunctions/AggregateFunctionIf.h | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dbms/src/AggregateFunctions/AggregateFunctionArray.h b/dbms/src/AggregateFunctions/AggregateFunctionArray.h index 88e9d28da2f..004e860a394 100644 --- a/dbms/src/AggregateFunctions/AggregateFunctionArray.h +++ b/dbms/src/AggregateFunctions/AggregateFunctionArray.h @@ -25,11 +25,11 @@ class AggregateFunctionArray final : public IAggregateFunctionHelper(type.get())) @@ -73,9 +73,9 @@ public: void add(AggregateDataPtr place, const IColumn ** columns, size_t row_num, Arena * arena) const override { - const IColumn * nested[num_agruments]; + const IColumn * nested[num_arguments]; - for (size_t i = 0; i < num_agruments; ++i) + for (size_t i = 0; i < num_arguments; ++i) nested[i] = &static_cast(*columns[i]).getData(); const ColumnArray & first_array_column = static_cast(*columns[0]); @@ -85,7 +85,7 @@ public: size_t end = offsets[row_num]; /// Sanity check. NOTE We can implement specialization for a case with single argument, if the check will hurt performance. - for (size_t i = 1; i < num_agruments; ++i) + for (size_t i = 1; i < num_arguments; ++i) { const ColumnArray & ith_column = static_cast(*columns[i]); const IColumn::Offsets & ith_offsets = ith_column.getOffsets(); diff --git a/dbms/src/AggregateFunctions/AggregateFunctionIf.h b/dbms/src/AggregateFunctions/AggregateFunctionIf.h index 79a11b98731..4af8be78096 100644 --- a/dbms/src/AggregateFunctions/AggregateFunctionIf.h +++ b/dbms/src/AggregateFunctions/AggregateFunctionIf.h @@ -25,13 +25,13 @@ class AggregateFunctionIf final : public IAggregateFunctionHelper(types.back().get())) @@ -75,7 +75,7 @@ public: void add(AggregateDataPtr place, const IColumn ** columns, size_t row_num, Arena * arena) const override { - if (static_cast(*columns[num_agruments - 1]).getData()[row_num]) + if (static_cast(*columns[num_arguments - 1]).getData()[row_num]) nested_func->add(place, columns, row_num, arena); }