HuaHuaY opened a new pull request, #47775: URL: https://github.com/apache/arrow/pull/47775
### Rationale for this change Allow to rewrite parquet files in binary data formats instead of reading, decoding all values and writing them. ### What changes are included in this PR? 1. Add class `ParquetFileRewriter` and `RewriterProperties`. 2. Add some `to_thrift` and `SetXXX` methods to help me copy the metadata. 3. Add `CopyStream` methods to call `memcpy` between `ArrowInputStream` and `ArrowOutputStream`. 4. Add `RowGroupMetaDataBuilder::NextColumnChunk(std::unique_ptr<ColumnChunkMetaData> cc_metadata, int64_t shift)` which allows to add column metadata without creating `ColumnChunkMetaDataBuilder`. ### Are these changes tested? Yes ### Are there any user-facing changes? 1. Add some new classes and methods mentioned above. 2. `ReaderProperties::GetStream` is changed to a const method. Only the signature has been changed. Its original implementation allows it to be declared as a const method. -- 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]
