[
https://issues.apache.org/jira/browse/PARQUET-1855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wes McKinney resolved PARQUET-1855.
-----------------------------------
Fix Version/s: cpp-1.6.0
Resolution: Fixed
Issue resolved by pull request 7244
[https://github.com/apache/arrow/pull/7244]
> [C++] Improve documentation on MetaData ownership
> -------------------------------------------------
>
> Key: PARQUET-1855
> URL: https://issues.apache.org/jira/browse/PARQUET-1855
> Project: Parquet
> Issue Type: Improvement
> Components: parquet-cpp
> Reporter: Francois Saint-Jacques
> Assignee: Francois Saint-Jacques
> Priority: Major
> Labels: pull-request-available
> Fix For: cpp-1.6.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> I had to look at the implementation to understand what are the lifetime
> relationship for the following objects:
> * FileMetaData
> * RowGroupMetaData
> * ColumnChunkMetaData
> From what I gather, a reference to the top-level FileMetaData must be hold
> for any of the children objects (RowGroupMetaData and ColumnChunkMetaData)
> lifetime. It is unclear if the original buffer from which the metadata was
> deserialized must be hold for the lifetime of the FIleMetaData object, I
> suspect it does not need to be kept.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)