[ 
https://issues.apache.org/jira/browse/PARQUET-1867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gang Wu resolved PARQUET-1867.
------------------------------
    Resolution: Won't Fix

This is by design and a warning has been added long ago: 
[arrow/cpp/src/parquet/metadata.h at 37bd413c8322e0d9527c14420468b99f8abd1715 ยท 
apache/arrow 
(github.com)|https://github.com/apache/arrow/blob/37bd413c8322e0d9527c14420468b99f8abd1715/cpp/src/parquet/metadata.h#L322]

> [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
>            Priority: Major
>
> 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.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to