Skip to content

Commit

Permalink
Remove deprecated Parquet APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
benibus committed Jul 13, 2023
1 parent e1dfb55 commit df5d7e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
10 changes: 0 additions & 10 deletions cpp/src/parquet/arrow/reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,6 @@ class FileReaderImpl : public FileReader {
reader_->metadata()->key_value_metadata(), out);
}

Status ReadSchemaField(int i, std::shared_ptr<ChunkedArray>* out) override {
auto included_leaves = VectorToSharedSet(Iota(reader_->metadata()->num_columns()));
std::vector<int> row_groups = Iota(reader_->metadata()->num_row_groups());

std::unique_ptr<ColumnReaderImpl> reader;
RETURN_NOT_OK(GetFieldReader(i, included_leaves, row_groups, &reader));

return ReadColumn(i, row_groups, reader.get(), out);
}

Status ReadColumn(int i, const std::vector<int>& row_groups, ColumnReader* reader,
std::shared_ptr<ChunkedArray>* out) {
BEGIN_PARQUET_CATCH_EXCEPTIONS
Expand Down
16 changes: 0 additions & 16 deletions cpp/src/parquet/arrow/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,22 +145,6 @@ class PARQUET_EXPORT FileReader {
virtual ::arrow::Status ReadColumn(int i,
std::shared_ptr<::arrow::ChunkedArray>* out) = 0;

// NOTE: Experimental API
// Reads a specific top level schema field into an Array
// The index i refers the index of the top level schema field, which may
// be nested or flat - e.g.
//
// 0 foo.bar
// foo.bar.baz
// foo.qux
// 1 foo2
// 2 foo3
//
// i=0 will read the entire foo struct, i=1 the foo2 primitive column etc
ARROW_DEPRECATED("Deprecated in 9.0.0. Use ReadColumn instead.")
virtual ::arrow::Status ReadSchemaField(
int i, std::shared_ptr<::arrow::ChunkedArray>* out) = 0;

/// \brief Return a RecordBatchReader of all row groups and columns.
virtual ::arrow::Status GetRecordBatchReader(
std::unique_ptr<::arrow::RecordBatchReader>* out) = 0;
Expand Down

0 comments on commit df5d7e5

Please sign in to comment.