fenfeng9 opened a new pull request, #48939:
URL: https://github.com/apache/arrow/pull/48939

   ### Rationale for this change
   `FileReader::ReadTable` previously returned `Status` and required callers to 
pass an `out` parameter.
   ### What changes are included in this PR?
   Introduce `Result<std::shared_ptr<Table>>` returning API to allow clearer 
error propagation:
     - Add new Result-returning `ReadTable()` methods
     - Deprecate the old Status versions
     - Migrate all callers to use the new API
   ### Are these changes tested?
   Yes.
   ### Are there any user-facing changes?
   Yes.
   
   Status version FileReader::ReadTable has been deprecated.
   ```cpp
   virtual ::arrow::Status ReadTable(std::shared_ptr<::arrow::Table>* out);
   
   virtual ::arrow::Status ReadTable(const std::vector<int>& column_indices,
                                     std::shared_ptr<::arrow::Table>* out);
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to