Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-12771

[C++] Arrow compute hash_count skips following chunked arrays in streaming execution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 5.0.0
    • C++

    Description

      The parameter of MaybeReserve in has_count's Consume function is incorrect.

      MaybeReserve(counts_.length(), batch, [&](int64_t added_groups)
      

      The counts_.length() means the buffer's byte size, it should be replaced with num_groups_.  Otherwise, subsequent chunked arrays with more groups are skipped as counts_.length() is actually num_groups_*sizeof(int64_t)

      Attachments

        Issue Links

          Activity

            People

              crystrix Chenxi Li
              crystrix Chenxi Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m