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

if (type_id == Type::STRUCT) {
ARROW_LOG(INFO) << "Hashing struct";
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];
if (is_nested(child.type->id())) {
ARROW_ASSIGN_OR_RAISE(child_hashes[i],
Expand Down
5 changes: 3 additions & 2 deletions cpp/src/arrow/compute/kernels/scalar_hash_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,10 @@ TEST_F(TestScalarHash, RandomList) {
TEST_F(TestScalarHash, RandomStruct) {
auto rand = random::RandomArrayGenerator(kSeed);
auto types = {
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())}))}),
// struct_({field("f0", list(int32()))}),
// struct_({field("f0", struct_({field("f0", int32()), field("f1", utf8())}))}),
};
for (auto type : types) {
for (auto length : array_lengths) {
Expand Down

0 comments on commit dbe13bf

Please sign in to comment.