ZhangHuiGui commented on code in PR #41194:
URL: https://github.com/apache/arrow/pull/41194#discussion_r1567080524
##########
cpp/src/arrow/compute/row/encode_internal.h:
##########
@@ -111,7 +111,7 @@ class ARROW_EXPORT RowTableEncoder {
const std::vector<KeyColumnArray>& cols_in);
// Data initialized once, based on data types of key columns
- RowTableMetadata row_metadata_;
+ std::shared_ptr<RowTableMetadata> row_metadata_;
Review Comment:
Ah, I understand.
We should uniformly manage the life cycle of `RowTableMetadata` in
`RowArray` and `GrouperFastImpl`, and others like `RowTableImpl` and
`RowTableEncoder` only need to hold a raw-pointer of `RowTableMetadata`.
--
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]