You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Francois Saint-Jacques (Jira)" <ji...@apache.org> on 2020/05/22 13:26:00 UTC
[jira] [Created] (PARQUET-1867) [C++] Fix MetaData children object
lifetime issues
Francois Saint-Jacques created PARQUET-1867:
-----------------------------------------------
Summary: [C++] Fix MetaData children object lifetime issues
Key: PARQUET-1867
URL: https://issues.apache.org/jira/browse/PARQUET-1867
Project: Parquet
Issue Type: Improvement
Components: parquet-cpp
Reporter: Francois Saint-Jacques
FileMetaData::RowGroup(int i) and RowGroupMetaData::ColumnChunk(i) returns both a unique_ptr<T> which gives the impression that the object are self-contained and safe to own without any lifetime issue.
The reality is that the caller must hold the lifetime of the parent object. We should change the signature to a const-ref instead.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)