diff --git a/cpp/src/arrow/compute/kernels/hash_aggregate_test.cc b/cpp/src/arrow/compute/kernels/hash_aggregate_test.cc index 4e2a5033018e7..e010685443dae 100644 --- a/cpp/src/arrow/compute/kernels/hash_aggregate_test.cc +++ b/cpp/src/arrow/compute/kernels/hash_aggregate_test.cc @@ -189,13 +189,19 @@ struct TestGrouper { int64_t num_ids = left->length(); auto left_data = left->data(); auto right_data = right->data(); - const uint32_t* left_ids = reinterpret_cast(left_data->buffers[1]->data()); - const uint32_t* right_ids = reinterpret_cast(right_data->buffers[1]->data()); + const uint32_t* left_ids = + reinterpret_cast(left_data->buffers[1]->data()); + const uint32_t* right_ids = + reinterpret_cast(right_data->buffers[1]->data()); uint32_t max_left_id = 0; uint32_t max_right_id = 0; for (int64_t i = 0; i < num_ids; ++i) { - if (left_ids[i] > max_left_id) { max_left_id = left_ids[i]; } - if (right_ids[i] > max_right_id) { max_right_id = right_ids[i]; } + if (left_ids[i] > max_left_id) { + max_left_id = left_ids[i]; + } + if (right_ids[i] > max_right_id) { + max_right_id = right_ids[i]; + } } std::vector right_to_left_present; std::vector left_to_right_present; diff --git a/cpp/src/arrow/exec/groupby_storage.h b/cpp/src/arrow/exec/groupby_storage.h index c154d7654ba7d..0dd04a062b9ed 100644 --- a/cpp/src/arrow/exec/groupby_storage.h +++ b/cpp/src/arrow/exec/groupby_storage.h @@ -19,11 +19,11 @@ #include +#include "arrow/exec/common.h" +#include "arrow/exec/util.h" #include "arrow/memory_pool.h" #include "arrow/result.h" #include "arrow/status.h" -#include "arrow/exec/common.h" -#include "arrow/exec/util.h" #define AGGREGATES_STORED_SEPARATELY