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 dbe13bf commit 67bea8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cpp/src/arrow/compute/kernels/scalar_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,18 @@ struct FastHashScalar {
}

if (type_id == Type::STRUCT) {
ARROW_LOG(INFO) << "Hashing 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());
for (size_t i = 0; i < array.child_data.size(); i++) {
ARROW_LOG(INFO) << "Hashing child " << i;
auto child = array.child_data[i];
ARROW_LOG(INFO) << "Getting child column array " << i;
if (is_nested(child.type->id())) {
ARROW_LOG(INFO) << "Assigning child hashes " << i;
ARROW_ASSIGN_OR_RAISE(child_hashes[i],
HashChild(array, child, hash_ctx, memory_pool));
ARROW_LOG(INFO) << "Converting child column array " << i;
ARROW_ASSIGN_OR_RAISE(columns[i], ToColumnArray(*child_hashes[i], hash_ctx));
} else {
ARROW_ASSIGN_OR_RAISE(columns[i], ToColumnArray(child, hash_ctx));
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/compute/kernels/scalar_hash_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ TEST_F(TestScalarHash, RandomList) {
TEST_F(TestScalarHash, RandomStruct) {
auto rand = random::RandomArrayGenerator(kSeed);
auto types = {
struct_({field("f0", int32())}),
// struct_({field("f0", int32())}),
struct_({field("f0", int32()), field("f1", utf8())}),
// struct_({field("f0", list(int32()))}),
// struct_({field("f0", struct_({field("f0", int32()), field("f1", utf8())}))}),
Expand Down

0 comments on commit 67bea8f

Please sign in to comment.