[
https://issues.apache.org/jira/browse/ARROW-8138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17063347#comment-17063347
]
Francois Saint-Jacques commented on ARROW-8138:
-----------------------------------------------
I confirm the issue. Thanks for reporting, we'll have a fix for the next
release. Meanwhile, you can apply a patch locally:
{code:c++}
diff --git a/cpp/src/parquet/arrow/reader.cc b/cpp/src/parquet/arrow/reader.cc
index f75aca8956..b341c62068 100644
--- a/cpp/src/parquet/arrow/reader.cc
+++ b/cpp/src/parquet/arrow/reader.cc
@@ -783,7 +783,7 @@ Status FileReaderImpl::GetColumn(int i,
FileColumnIteratorFactory iterator_facto
auto ctx = std::make_shared<ReaderContext>();
ctx->reader = reader_.get();
ctx->pool = pool_;
- ctx->iterator_factory = AllRowGroupsFactory();
+ ctx->iterator_factory = iterator_factory;
ctx->filter_leaves = false;
std::unique_ptr<ColumnReaderImpl> result;
RETURN_NOT_OK(GetReader(manifest_.schema_fields[i], ctx, &result));
{code}
> [C++] parquet::arrow::FileReader cannot read multiple RowGroup
> --------------------------------------------------------------
>
> Key: ARROW-8138
> URL: https://issues.apache.org/jira/browse/ARROW-8138
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 0.16.0
> Environment: Centos 7
> Reporter: Feng Tian
> Priority: Blocker
> Fix For: 0.17.0
>
> Attachments: bug.cpp, bug.parquet
>
>
> When use parquet::arrow::FileReader to read parquet file consisting multiple
> row groups,
> {code:c++}
> reader->RowGroup(i)->Column(c)->Read
> {code}
> It will repeated read data of the first rowgroup.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)