diff --git a/python/pylibcudf/pylibcudf/io/json.pxd b/python/pylibcudf/pylibcudf/io/json.pxd index ab9b5b99ce2..f65c1034598 100644 --- a/python/pylibcudf/pylibcudf/io/json.pxd +++ b/python/pylibcudf/pylibcudf/io/json.pxd @@ -15,8 +15,8 @@ cpdef TableWithMetadata read_json( list dtypes = *, compression_type compression = *, bool lines = *, - size_type byte_range_offset = *, - size_type byte_range_size = *, + size_t byte_range_offset = *, + size_t byte_range_size = *, bool keep_quotes = *, bool mixed_types_as_string = *, bool prune_columns = *, diff --git a/python/pylibcudf/pylibcudf/io/json.pyx b/python/pylibcudf/pylibcudf/io/json.pyx index ce086f4a489..29e49083bc6 100644 --- a/python/pylibcudf/pylibcudf/io/json.pyx +++ b/python/pylibcudf/pylibcudf/io/json.pyx @@ -51,8 +51,8 @@ cdef json_reader_options _setup_json_reader_options( list dtypes, compression_type compression, bool lines, - size_type byte_range_offset, - size_type byte_range_size, + size_t byte_range_offset, + size_t byte_range_size, bool keep_quotes, bool mixed_types_as_string, bool prune_columns, @@ -189,8 +189,8 @@ cpdef TableWithMetadata read_json( list dtypes = None, compression_type compression = compression_type.AUTO, bool lines = False, - size_type byte_range_offset = 0, - size_type byte_range_size = 0, + size_t byte_range_offset = 0, + size_t byte_range_size = 0, bool keep_quotes = False, bool mixed_types_as_string = False, bool prune_columns = False, @@ -212,9 +212,9 @@ cpdef TableWithMetadata read_json( (column_child_name, column_child_type, list of grandchild dtypes). compression: CompressionType, default CompressionType.AUTO The compression format of the JSON source. - byte_range_offset : size_type, default 0 + byte_range_offset : size_t, default 0 Number of bytes to skip from source start. - byte_range_size : size_type, default 0 + byte_range_size : size_t, default 0 Number of bytes to read. By default, will read all bytes. keep_quotes : bool, default False Whether the reader should keep quotes of string values. diff --git a/python/pylibcudf/pylibcudf/libcudf/io/json.pxd b/python/pylibcudf/pylibcudf/libcudf/io/json.pxd index 7514e6c5258..1c74f8ca3ac 100644 --- a/python/pylibcudf/pylibcudf/libcudf/io/json.pxd +++ b/python/pylibcudf/pylibcudf/libcudf/io/json.pxd @@ -27,8 +27,8 @@ cdef extern from "cudf/io/json.hpp" \ cudf_io_types.source_info get_source() except + vector[string] get_dtypes() except + cudf_io_types.compression_type get_compression() except + - size_type get_byte_range_offset() except + - size_type get_byte_range_size() except + + size_t get_byte_range_offset() except + + size_t get_byte_range_size() except + bool is_enabled_lines() except + bool is_enabled_mixed_types_as_string() except + bool is_enabled_prune_columns() except + @@ -41,8 +41,8 @@ cdef extern from "cudf/io/json.hpp" \ void set_compression( cudf_io_types.compression_type compression ) except + - void set_byte_range_offset(size_type offset) except + - void set_byte_range_size(size_type size) except + + void set_byte_range_offset(size_t offset) except + + void set_byte_range_size(size_t size) except + void enable_lines(bool val) except + void enable_mixed_types_as_string(bool val) except + void enable_prune_columns(bool val) except + @@ -73,10 +73,10 @@ cdef extern from "cudf/io/json.hpp" \ cudf_io_types.compression_type compression ) except + json_reader_options_builder& byte_range_offset( - size_type offset + size_t offset ) except + json_reader_options_builder& byte_range_size( - size_type size + size_t size ) except + json_reader_options_builder& lines( bool val