File tree 1 file changed +2
-4
lines changed
python/pylibcudf/pylibcudf
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ from pylibcudf.libcudf.interop cimport (
25
25
to_arrow_device_raw,
26
26
to_arrow_schema_raw,
27
27
)
28
+ from pylibcudf.libcudf.null_mask cimport bitmask_allocation_size_bytes
28
29
from pylibcudf.libcudf.scalar.scalar cimport scalar
29
30
from pylibcudf.libcudf.strings.strings_column_view cimport strings_column_view
30
31
from pylibcudf.libcudf.types cimport size_type, size_of as cpp_size_of, bitmask_type
@@ -50,7 +51,6 @@ from ._interop_helpers cimport (
50
51
_release_device_array,
51
52
_metadata_to_libcudf,
52
53
)
53
- from .null_mask cimport bitmask_allocation_size_bytes
54
54
from .utils cimport _get_stream
55
55
56
56
from .gpumemoryview import _datatype_from_dtype_desc
@@ -90,12 +90,10 @@ cdef class OwnerWithCAI:
90
90
# The default size of 0 will be applied for any type that stores data in the
91
91
# children (such that the parent size is 0).
92
92
size = 0
93
- cdef column_view offsets_column
94
- cdef unique_ptr[scalar] last_offset
95
93
if cv.type().id() == type_id.EMPTY:
96
94
size = cv.size()
97
95
elif is_fixed_width(cv.type()):
98
- # Cast to Python integers before multiplyling to avoid overflow.
96
+ # Cast to Python integers before multiplying to avoid overflow.
99
97
size = int (cv.size()) * int (cpp_size_of(cv.type()))
100
98
elif cv.type().id() == type_id.STRING:
101
99
# TODO: stream-ordered
You can’t perform that action at this time.
0 commit comments