Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1166

[API Proposal] Add GetRecordBatchReader in parquet/arrow/reader.h

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • cpp-1.5.0
    • parquet-cpp
    • None

    Description

      Hi, I'd like to proposal a new API to better support splittable reading for Parquet File.

      The intent for this API is that we can selective reading RowGroups(normally be contiguous, but can be arbitrary as long as the row_group_idxes are sorted and unique, [1, 3, 5] for example).

      The proposed API would be something like this:

      ::arrow::Status GetRecordBatchReader(const std::vector<int>& row_group_indices,
                                                                      std::shared_ptr<::arrow::RecordBatchReader>* out);
                      
      ::arrow::Status GetRecordBatchReader(const std::vector<int>& row_group_indices,
                                                                      const std::vector<int>& column_indices,
                                                                      std::shared_ptr<::arrow::RecordBatchReader>* out);
      
      

      With new API, we can split Parquet file into RowGroups and can be processed by multiple tasks(maybe be on different hosts, like the Map task in MapReduce)

      wesmckinnxhochy What do you think?

      Attachments

        Issue Links

          Activity

            People

              advancedxy YE
              advancedxy YE
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: