westonpace commented on a change in pull request #10636:
URL: https://github.com/apache/arrow/pull/10636#discussion_r670781453
##########
File path: cpp/src/arrow/dataset/file_parquet.cc
##########
@@ -877,22 +878,26 @@ Result<std::shared_ptr<DatasetFactory>>
ParquetDatasetFactory::Make(
// Insert the path, or increase the count of row groups. It will be
assumed that the
// RowGroup of a file are ordered exactly as in the metadata file.
- auto row_groups = &path_to_row_group_ids.insert({std::move(path),
{}}).first->second;
- row_groups->emplace_back(i);
+ auto inserted_index =
+ paths_to_index.insert({std::move(path),
paths_with_row_group_ids.size()});
Review comment:
Thanks. I've applied this suggestion (didn't realize it was a
suggestion when I saw it in zulip so I did it manually).
--
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]