Skip to content

[FEA] libcudf functions for segmented_has_nulls / has_null_elements(list_view) / segmented_bitmask_reduction #9552

Closed

Description

@bdice

Is your feature request related to a problem? Please describe.
Following from libcudf discussions around null support and lists (or segmented columns more generally), we have identified a need for a few new APIs. Many reductions over a list_view produce results that should be null if any element in the list (an element in the corresponding segment of the child column) is null.

cc: @isVoid @jrhemstad @nvdbaranec, @ttnghia @mythrocks

Describe the solution you'd like

First, segmented_count_set_bits should be refactored to separate the section acting on device-side data. This function will do the same thing as the existing host-side function but act on arrays of indices that are already on the device.

We propose the addition of the following functions:

Additional context
This affects @bdice's work on #9215, @ttnghia's work on #9545, and @isVoid's plan for addressing #9135.

Activity

  1. added
    feature request
    Needs Triage
    on Oct 28, 2021
  2. self-assigned this
    on Oct 28, 2021
  3. changed the title [-][FEA] libcudf functions for segmented_has_nulls / has_null_elements(list_view) / `segmented_bitmask_reduction`[/-] [+][FEA] libcudf functions for `segmented_has_nulls` / `has_null_elements(list_view)` / `segmented_bitmask_reduction`[/+] on Oct 28, 2021
  4. bdice commented on Oct 28, 2021

    @bdice
    ContributorAuthor

    I have started on this, and have a draft of splitting out device-side code from segmented_count_set_bits. I'll open a PR soon.

  5. added
    libcudf
    and removed
    Needs Triage
    on Nov 12, 2021
  6. github-actions commented on Jan 8, 2022

    @github-actions

    This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

  7. bdice commented on Jan 11, 2022

    @bdice
    ContributorAuthor

    Update: this is being addressed in #9621. @isVoid and I wrote a function segmented_null_mask_reduction in a017223 that should address many of the use cases needed for this issue.

  8. github-actions commented on Feb 10, 2022

    @github-actions

    This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

  9. added a commit that references this issue on Mar 10, 2022
    7ff1956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature requestlibcudf

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions