Skip to content

Commit

Permalink
GH-39715: Adjust Field ordering in parquet::FileSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Jan 20, 2024
1 parent 55afcf0 commit c4933a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/src/parquet/file_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,12 @@ class FileSerializer : public ParquetFileWriter::Contents {
int num_row_groups_;
int64_t num_rows_;
std::unique_ptr<FileMetaDataBuilder> metadata_;
// GH-39715: file_encryptor_ must be destroyed after page_index_builder_,
// and page_index_builder_ must be destroyed after row_group_writer_.
std::unique_ptr<InternalFileEncryptor> file_encryptor_;
std::unique_ptr<PageIndexBuilder> page_index_builder_;
// Only one of the row group writers is active at a time
std::unique_ptr<RowGroupWriter> row_group_writer_;
std::unique_ptr<PageIndexBuilder> page_index_builder_;
std::unique_ptr<InternalFileEncryptor> file_encryptor_;

void StartFile() {
auto file_encryption_properties = properties_->file_encryption_properties();
Expand Down

0 comments on commit c4933a9

Please sign in to comment.