Skip to content

[C++] hash_count kernel miscounts when run-end encoded array contains null #35059

Closed

Description

@felipecrv

Describe the bug, including details regarding any error messages, version, and platform.

Passing run-end encoded array in unit tests leads to these failures:

[ RUN      ] GroupBy/GroupBy.CountOnly/0
/home/felipeo/code/arrow/cpp/src/arrow/testing/gtest_util.cc:100: Failure
Failed

@@ -0, +0 @@
-{key_0: 1, hash_count: 2}
+{key_0: 1, hash_count: 3}
@@ -2, +2 @@
-{key_0: 3, hash_count: 0}
+{key_0: 3, hash_count: 2}
Expected:
  -- is_valid: all not null
  -- child 0 type: int64
    [
      1,
      2,
      3,
      null
    ]
  -- child 1 type: int64
    [
      2,
      3,
      0,
      2
    ]
Actual:
  -- is_valid: all not null
  -- child 0 type: int64
    [
      1,
      2,
      3,
      null
    ]
  -- child 1 type: int64
    [
      3,
      3,
      2,
      2
    ]
    ```

### Component(s)

C++

Activity

  1. added a commit that references this issue on May 1, 2023
  2. added this to the 13.0.0 milestone on May 1, 2023
  3. added a commit that references this issue on May 11, 2023
  4. added a commit that references this issue on May 15, 2023
  5. added
    Critical Fix
    on Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Component: C++Critical FixType: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions