-
Notifications
You must be signed in to change notification settings - Fork 3.8k
GH-46869: [C++][Parquet] Add arrow::Result
version of parquet::arrow::FileReader::GetRecordBatchReader()
#46932
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
base: main
Are you sure you want to change the base?
Conversation
…r::GetRecordBatchReader() Signed-off-by: Ziy1-Tan <[email protected]>
arrow::Result
version of parquet::arrow::FileReader::GetRecordBatchReader()
It would be better to change all test cases to use new non-deprecated apis. |
It is only used by example before: arrow/cpp/examples/arrow/parquet_read_write.cc Lines 69 to 70 in ed13ced
|
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.
@@ -191,13 +191,53 @@ class PARQUET_EXPORT FileReader { | |||
/// | |||
/// \returns error Status if either row_group_indices or column_indices | |||
/// contains an invalid index | |||
/// \deprecated Deprecated in future release. Use arrow::Result version instead. | |||
ARROW_DEPRECATED("Deprecated in future release. Use arrow::Result version instead.") |
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.
Can we specify a clear deprecated version? It should be 21.0.0 for now. (Note that there will be a feature freeze on July 1st)
/// \returns error Result if either row_group_indices or column_indices | ||
/// contains an invalid index | ||
virtual ::arrow::Result<std::shared_ptr<::arrow::RecordBatchReader>> | ||
GetRecordBatchReaderSharedPtr(const std::vector<int>& row_group_indices, |
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.
GetRecordBatchReaderSharedPtr(const std::vector<int>& row_group_indices, | |
GetRecordBatchReader(const std::vector<int>& row_group_indices, |
Can we avoid adding SharedPtr
to be consistent?
Rationale for this change
We're migrating arrow::Status + output variable API to arrow::Result API.
What changes are included in this PR?
arrow::Result<std::shared_ptr<arrow::RecordBatchReader parquet::arrow::FileReader::GetRecordBatchReaderSharedPtr()
arrow::Status parquet::arrow::FileReadeder::GetRecordBatchReader()
arrow::Result
version in our code baseAre these changes tested?
Yes.
Are there any user-facing changes?
Yes.
This PR includes breaking changes to public APIs.
GetRecordBatchReader()
-->GetRecordBatchReaderSharedPtr()
, because overloading is not possible if only the return value is differentResult<shared_ptr>
versions ofparquet:arrow::FileReader::GetRecordBatchReader()
#46869