Skip to content

Commit

Permalink
enhance the style for metadata AppendRowGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Dec 22, 2023
1 parent b15990d commit 5b4ccc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/parquet/metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ class FileMetaData::FileMetaDataImpl {
return metadata_->row_groups[i];
}

void AppendRowGroups(const std::unique_ptr<FileMetaDataImpl>& other) {
void AppendRowGroups(FileMetaDataImpl* other) {
std::ostringstream diff_output;
if (!schema()->Equals(*other->schema(), &diff_output)) {
auto msg = "AppendRowGroups requires equal schemas.\n" + diff_output.str();
Expand Down Expand Up @@ -969,7 +969,7 @@ const std::shared_ptr<const KeyValueMetadata>& FileMetaData::key_value_metadata(
void FileMetaData::set_file_path(const std::string& path) { impl_->set_file_path(path); }

void FileMetaData::AppendRowGroups(const FileMetaData& other) {
impl_->AppendRowGroups(other.impl_);
impl_->AppendRowGroups(other.impl_.get());
}

std::shared_ptr<FileMetaData> FileMetaData::Subset(
Expand Down

0 comments on commit 5b4ccc0

Please sign in to comment.