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

[Rust] Simd implementation of min/max aggregation kernels for primitive types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Rust

    Description

      Using a similar approach as the sum kernel (ARROW-10015). Instead of initializing the accumulator with 0 we'd need the largest/smallest possible value for each ArrowNumericType (i.e. u64::MAX or +-Inf)

      Pseudo code for min aggregation 

      // initialize accumulator
      min_acc = +Inf
      // aggregate each chunk
      min_acc = min(min_acc, select(valid, value, +Inf))
      

      Attachments

        Issue Links

          Activity

            People

              jhorstmann Jörn Horstmann
              jhorstmann Jörn Horstmann
              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 - 3h 10m
                  3h 10m