Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
Signed-off-by: Nghia Truong <[email protected]>
  • Loading branch information
ttnghia committed Dec 28, 2024
1 parent 41cf444 commit e4cabfd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions cpp/src/groupby/sort/aggregate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,8 @@ void aggregate_result_functor::operator()<aggregation::COVARIANCE>(aggregation c
column_view_with_common_nulls(values.child(0), values.child(1), stream);

auto mean_agg = make_mean_aggregation();
aggregate_result_functor(values_child0, helper, cache, stream, mr)
.operator()<aggregation::MEAN>(*mean_agg);
aggregate_result_functor(values_child1, helper, cache, stream, mr)
.operator()<aggregation::MEAN>(*mean_agg);
aggregate_result_functor(values_child0, helper, cache, stream, mr).operator()<aggregation::MEAN>(*mean_agg);
aggregate_result_functor(values_child1, helper, cache, stream, mr).operator()<aggregation::MEAN>(*mean_agg);

auto const mean0 = cache.get_result(values_child0, *mean_agg);
auto const mean1 = cache.get_result(values_child1, *mean_agg);
Expand Down Expand Up @@ -666,10 +664,8 @@ void aggregate_result_functor::operator()<aggregation::CORRELATION>(aggregation
column_view_with_common_nulls(values.child(0), values.child(1), stream);

auto std_agg = make_std_aggregation();
aggregate_result_functor(values_child0, helper, cache, stream, mr)
.operator()<aggregation::STD>(*std_agg);
aggregate_result_functor(values_child1, helper, cache, stream, mr)
.operator()<aggregation::STD>(*std_agg);
aggregate_result_functor(values_child0, helper, cache, stream, mr).operator()<aggregation::STD>(*std_agg);
aggregate_result_functor(values_child1, helper, cache, stream, mr).operator()<aggregation::STD>(*std_agg);

// Compute covariance here to avoid repeated computation of mean & count
auto cov_agg = make_covariance_aggregation(corr_agg._min_periods);
Expand Down

0 comments on commit e4cabfd

Please sign in to comment.