Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate pylibcudf lists gathering #16170

Merged
merged 7 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Initial Commit
  • Loading branch information
Matt711 committed Jun 28, 2024
commit 1825be5d0e6c04dee98ec8b8f931c702a47ed3e7
4 changes: 2 additions & 2 deletions python/cudf/cudf/_lib/pylibcudf/libcudf/lists/gather.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ from cudf._lib.pylibcudf.libcudf.lists.lists_column_view cimport (

cdef extern from "cudf/lists/gather.hpp" namespace "cudf::lists" nogil:
cdef unique_ptr[column] segmented_gather(
const lists_column_view source_column,
const lists_column_view gather_map_list
const lists_column_view& source_column,
const lists_column_view& gather_map_list
) except +
3 changes: 3 additions & 0 deletions python/cudf/cudf/_lib/pylibcudf/lists.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from libcpp cimport bool

from cudf._lib.pylibcudf.libcudf.copying cimport out_of_bounds_policy
Matt711 marked this conversation as resolved.
Show resolved Hide resolved
from cudf._lib.pylibcudf.libcudf.types cimport size_type

from .column cimport Column
Expand All @@ -23,3 +24,5 @@ cpdef Column contains(Column, ColumnOrScalar)
cpdef Column contains_nulls(Column)

cpdef Column index_of(Column, ColumnOrScalar, bool)

cpdef Column segmented_gather(Column, Column, bool)
6 changes: 6 additions & 0 deletions python/cudf/cudf/_lib/pylibcudf/lists.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,9 @@ cpdef Column index_of(Column input, ColumnOrScalar search_key, bool find_first_o
find_option,
))
return Column.from_libcudf(move(c_result))


cpdef Column segmented_gather(Column input, Column gather_map_list, bool check_bounds):
"""column with elements in list of rows gathered based on gather_map_list
"""
pass