Skip to content

Commit

Permalink
run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
bkietz committed Mar 25, 2021
1 parent 4d8d98a commit 2268884
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions cpp/src/arrow/compute/kernels/hash_aggregate_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<const uint32_t*>(left_data->buffers[1]->data());
const uint32_t* right_ids = reinterpret_cast<const uint32_t*>(right_data->buffers[1]->data());
const uint32_t* left_ids =
reinterpret_cast<const uint32_t*>(left_data->buffers[1]->data());
const uint32_t* right_ids =
reinterpret_cast<const uint32_t*>(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<bool> right_to_left_present;
std::vector<bool> left_to_right_present;
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/arrow/exec/groupby_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

#include <cstdint>

#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

Expand Down

0 comments on commit 2268884

Please sign in to comment.