zinking commented on code in PR #36967:
URL: https://github.com/apache/arrow/pull/36967#discussion_r1281318564


##########
cpp/src/arrow/dataset/file_parquet.cc:
##########
@@ -779,6 +787,28 @@ Result<std::vector<int>> 
ParquetFileFragment::FilterRowGroups(
   return row_groups;
 }
 
+Result<std::vector<int>> ParquetFileFragment::FilterRangeRowGroups(
+    std::vector<int> filtered_row_groups, int64_t start_offset, int64_t 
length) {
+  std::vector<int> row_groups;
+  for (int row_group : filtered_row_groups) {
+    auto rg_metadata = metadata_->RowGroup(row_group);
+    std::shared_ptr<parquet::ColumnChunkMetaData> cc0 = 
rg_metadata->ColumnChunk(0);

Review Comment:
   this is the behavior for parquet java reader as well. but anyways, java 
reader is asserting on the existence of total size as well.



-- 
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