Uh oh!
There was an error while loading. Please reload this page.
GH-46869: [C++][Parquet] Deprecate arrow::Status parquet::arrow::FileReadeder::GetRecordBatchReader() - #46932
Conversation
…r::GetRecordBatchReader() Signed-off-by: Ziy1-Tan <ajb459684460@gmail.com>
arrow::Result version of parquet::arrow::FileReader::GetRecordBatchReader()wgtmac
commented
Jun 29, 2025
It would be better to change all test cases to use new non-deprecated apis. |
Ziy1-Tan
commented
Jun 29, 2025
It is only used by example before: arrow/cpp/examples/arrow/parquet_read_write.cc Lines 69 to 70 in ed13ced |
| /// \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.
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.
| GetRecordBatchReaderSharedPtr(conststd::vector<int>&row_group_indices, | |
| GetRecordBatchReader(conststd::vector<int>&row_group_indices, |
Can we avoid adding SharedPtr to be consistent?
There was a problem hiding this comment.
GetRecordBatchReader is used by Result<std::unique_ptr<RecordBatchReader>> GetRecordBatchReader now. @wgtmac, Do you have better nameing of this? Or remove shared_ptr version completely.
There was a problem hiding this comment.
Ah, then we don't need this new method as users can convert the unique_ptr to shared_ptr if they want.
There was a problem hiding this comment.
I agree with @pitrou that these new functions are essentially duplicate.
kou
left a comment
There was a problem hiding this comment.
Could you update the PR description?
There was a problem hiding this comment.
Could you keep them? Users who still use old API use them.
arrow::Result version of parquet::arrow::FileReader::GetRecordBatchReader()arrow::Status parquet::arrow::FileReadeder::GetRecordBatchReader()There was a problem hiding this comment.
It should be 21.0.0 (if we can merge this before the code freeze; otherwise 22.0.0)
Signed-off-by: Ziy1-Tan <ajb459684460@gmail.com>
mapleFU
commented
Jul 4, 2025
I have same issue here: #46932 (comment) . would this in 21.0 or be 22.0? |
We don't have a release branch for 21.0.0 yet. So let's merge this for 21.0.0. |
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit f6ea922. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Rationale for this change
We're migrating arrow::Status + output variable API to arrow::Result API.
What changes are included in this PR?
arrow::Status parquet::arrow::FileReadeder::GetRecordBatchReader()Are these changes tested?
Yes.
Are there any user-facing changes?
No. But
arrow::Status parquet::arrow::FileReadeder::GetRecordBatchReader()are deprecated.Statusversions ofparquet:arrow::FileReader::GetRecordBatchReader()#46869