fatemehp commented on code in PR #37003:
URL: https://github.com/apache/arrow/pull/37003#discussion_r1283480713
##########
cpp/src/parquet/file_reader.cc:
##########
@@ -82,6 +82,28 @@ std::shared_ptr<ColumnReader> RowGroupReader::Column(int i) {
const_cast<ReaderProperties*>(contents_->properties())->memory_pool());
}
+std::shared_ptr<internal::RecordReader> RowGroupReader::RecordReader(
+ int i, bool read_dictionary, bool read_dense_for_nullable) {
+ if (i >= metadata()->num_columns()) {
+ std::stringstream ss;
+ ss << "Trying to read column index " << i << " but row group metadata has
only "
+ << metadata()->num_columns() << " columns";
+ throw ParquetException(ss.str());
+ }
+ const ColumnDescriptor* descr = metadata()->schema()->Column(i);
+
+ std::unique_ptr<PageReader> page_reader = contents_->GetColumnPageReader(i);
+
+ internal::LevelInfo level_info =
internal::LevelInfo::ComputeLevelInfo(descr);
+
+ auto reader = internal::RecordReader::Make(
+ descr, level_info,
+ const_cast<ReaderProperties*>(contents_->properties())->memory_pool(),
Review Comment:
Does not seem necessary, I removed it.
--
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]