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

[C++] Hash aggregate functions to return first and last value from a group.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • C++

    Description

      Follow-up to ARROW-13993, which implemented `hash_one` to select an arbitrary value, as the core engine lack support for ordering. I think `first` and `last` will still be in demand though, based on pandas and sql usage.

      It could be done without core changes by using `min_max` on an array of indices. For that reason, maybe it would be better as `hash_{first,last}_index`, suitable for use with `take`.

      Attachments

        Issue Links

          Activity

            People

              sanjibansg Sanjiban Sengupta
              coady A. Coady
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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