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

[C++] Implement an array_filter kernel for decimal256

    XMLWordPrintableJSON

Details

    Description

      This surfaced in some of the R unit tests. I believe the expected behaviour would be to return an empty chunked array. Reproducible example:

      suppressMessages(library(arrow))
      
      empty_filter <- ChunkedArray$create(type = bool())
      one_empty_chunk <- ChunkedArray$create(type = decimal128(4, 2))
      one_empty_chunk$Filter(empty_filter)
      #> ChunkedArray
      #> [
      #> 
      #> ]
      
      one_empty_chunk <- ChunkedArray$create(type = decimal256(4, 2))
      one_empty_chunk$Filter(empty_filter)
      #>Error: NotImplemented: Function array_filter has no kernel matching input types (array[decimal256(4, 2)], array[bool])
      

      This suite of unit tests were introduced as part of ARROW-13761.

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              dragosmg Dragoș Moldovan-Grünfeld
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1h 20m
                  1h 20m