-
Notifications
You must be signed in to change notification settings - Fork 915
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
Remove Arrow dependency from the datasource.hpp
public header
#13698
Changes from 1 commit
c27b915
f44947e
0bd1d01
650811f
b3a308a
ad1390e
4cdd6dd
bb37452
015f1ac
1a66e27
031ca64
077bfd2
cdb18da
2445bf3
8df8011
722081f
694087e
0d4c8b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ cdef extern from "cudf/io/arrow_io_source.hpp" \ | |
namespace "cudf::io" nogil: | ||
|
||
cdef cppclass arrow_io_source(cudf_io_datasource.datasource): | ||
arrow_io_source(string arrow_uri) except + | ||
arrow_io_source(const string& arrow_uri) except + | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. east const. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For some reason I only see "const string" in pxd files so I kept this consistent with other instances. I'm not sure if our east const guideline reached Cython. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cython doesn't support east const. |
||
arrow_io_source(shared_ptr[CRandomAccessFile]) except + |
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.
Same to all other member functions. Maybe considering separating class declaration from definition
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.
I want to keep this class separate from libcudf, but we don't have to take that route.
@davidwendt thoughts on keeping the implementation in libcudf?
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.
I'm not sure I understand what you mean by keeping this separate from libcudf.
I think Yunsong means moves the implementation to
cpp/src/io/arrow_io_source.cpp
and keep only the declarations in this header file. I agree with that approach.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.
I meant that I will need to compile cpp/src/io/arrow_io_source.cpp as part of libcudf. Not an issue, just different from what I imagined in the beginning.