-
Notifications
You must be signed in to change notification settings - Fork 927
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
Add stream parameters in pylibcudf IO APIs #17620
base: branch-25.04
Are you sure you want to change the base?
Conversation
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
/ok to test |
/ok to test |
/ok to test |
/ok to test |
/ok to test |
/ok to test |
/ok to test |
/ok to test |
We should address rapidsai/rmm#1770 before we merge this PR or anything like it in cudf. |
TODO: Can do the AVRO too after #17766 |
/ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: We should be able to do something like this, but it currently produces a segfault that I will debug. I don't think this is a blocker for this PR though.
@@ -126,7 +128,8 @@ cdef class AvroReaderOptionsBuilder: | |||
|
|||
|
|||
cpdef TableWithMetadata read_avro( | |||
AvroReaderOptions options | |||
AvroReaderOptions options, | |||
Stream stream = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stream stream = None, | |
Stream stream = DEFAULT_STREAM, |
if stream is not None: | ||
c_result = move(cpp_read_avro(options.c_obj, stream.view())) | ||
else: | ||
c_result = move(cpp_read_avro(options.c_obj)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if stream is not None: | |
c_result = move(cpp_read_avro(options.c_obj, stream.view())) | |
else: | |
c_result = move(cpp_read_avro(options.c_obj)) | |
c_result = move(cpp_read_avro(options.c_obj, stream.view())) |
/ok to test |
/ok to test |
Note: I think we should also expose Tracking Issue: #17919 |
Description
Apart of #15163. Now that #13744 is closed, we can expose the
stream
parameter to pylibcudf. This PR will focus on the IO APIs.Example reading CSV files on different streams
Checklist