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

[C++] An "if_else" kernel to combine two arrays based on a mask

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0
    • C++

    Description

      (from discussion in ARROW-9489 with maartenbreddels)

      A general "where" kernel like np.where (https://numpy.org/doc/stable/reference/generated/numpy.where.html) seems a generally useful kernel to have, and could also help mimicking some other python (setitem-like) operations.

      The concrete use case in ARROW-9489 is to basically do a fill_null(array[string], array[string]) which could be expressed as where(is_null(arr), arr2, arr).

      Attachments

        Issue Links

          Activity

            People

              niranda Niranda Perera
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 10h 40m
                  10h 40m