Skip to content

Commit

Permalink
debug window build
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Dec 17, 2024
1 parent 724746b commit 227b95e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/src/arrow/compute/kernels/scalar_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ struct FastHashScalar {
if (type_id == Type::STRUCT) {
ARROW_LOG(INFO) << "Hashing struct with " << array.child_data.size() << " children";
std::vector<std::shared_ptr<ArrayData>> child_hashes(array.child_data.size());
columns.reserve(array.child_data.size());
columns.resize(array.child_data.size());
for (size_t i = 0; i < array.child_data.size(); i++) {
ARROW_LOG(INFO) << "Hashing child " << i;
auto child = array.child_data[i];
Expand All @@ -135,6 +135,8 @@ struct FastHashScalar {
ARROW_ASSIGN_OR_RAISE(columns[i], ToColumnArray(*child_hashes[i], hash_ctx));
} else {
ARROW_LOG(INFO) << "Assigning child key column array " << i;
ARROW_LOG(INFO) << "Capacity of columns " << columns.capacity();
ARROW_LOG(INFO) << "Size of columns " << columns.size();
ARROW_ASSIGN_OR_RAISE(columns[i], ToColumnArray(child, hash_ctx));
}
}
Expand Down

0 comments on commit 227b95e

Please sign in to comment.