-
Notifications
You must be signed in to change notification settings - Fork 914
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use more pylibcudf.types instead of cudf._lib.types (#17619)
Contributes to #17317 Primary change is to use `pylibcudf.TypeId` instead of an ad-hoc one defined in `cudf._lib.types`. Additionally uses pylibcudf more consistently and inlines/removes some seldom uses/dead code Authors: - Matthew Roeschke (https://github.com/mroeschke) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #17619
- Loading branch information
Showing
9 changed files
with
87 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
# Copyright (c) 2020-2024, NVIDIA CORPORATION. | ||
import numpy as np | ||
|
||
from . import strings_udf | ||
|
||
MAX_COLUMN_SIZE = np.iinfo(np.int32).max | ||
MAX_COLUMN_SIZE_STR = "INT32_MAX" | ||
MAX_STRING_COLUMN_BYTES = np.iinfo(np.int32).max | ||
MAX_STRING_COLUMN_BYTES_STR = "INT32_MAX" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
# Copyright (c) 2020-2024, NVIDIA CORPORATION. | ||
|
||
from libc.stdint cimport int32_t | ||
from libcpp cimport bool | ||
|
||
cimport pylibcudf.libcudf.types as libcudf_types | ||
from pylibcudf.libcudf.column.column_view cimport column_view | ||
from pylibcudf.libcudf.lists.lists_column_view cimport lists_column_view | ||
|
||
ctypedef int32_t underlying_type_t_type_id | ||
|
||
cdef dtype_from_column_view(column_view cv) | ||
|
||
cdef libcudf_types.data_type dtype_to_data_type(dtype) except * | ||
cpdef dtype_to_pylibcudf_type(dtype) | ||
cdef bool is_decimal_type_id(libcudf_types.type_id tid) except * |
Oops, something went wrong.