Skip to content

Commit

Permalink
trivail improve of grouparray
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyang-li committed Apr 8, 2024
1 parent 633aeaa commit 8826c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AggregateFunctions/AggregateFunctionGroupArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class GroupArrayNumericImpl final
a->rng.seed(seed.value_or(thread_local_rng()));
}

void add(AggregateDataPtr __restrict place, const IColumn ** columns, size_t row_num, Arena * arena) const override
void NO_SANITIZE_UNDEFINED ALWAYS_INLINE add(AggregateDataPtr __restrict place, const IColumn ** columns, size_t row_num, Arena * arena) const override
{
const auto & row_value = assert_cast<const ColumnVector<T> &>(*columns[0]).getData()[row_num];
auto & cur_elems = this->data(place);
Expand Down Expand Up @@ -529,7 +529,7 @@ class GroupArrayGeneralImpl final
a->rng.seed(seed.value_or(thread_local_rng()));
}

void add(AggregateDataPtr __restrict place, const IColumn ** columns, size_t row_num, Arena * arena) const override
void NO_SANITIZE_UNDEFINED ALWAYS_INLINE add(AggregateDataPtr __restrict place, const IColumn ** columns, size_t row_num, Arena * arena) const override
{
auto & cur_elems = data(place);

Expand Down

0 comments on commit 8826c35

Please sign in to comment.