Skip to content

Commit 9190c0a

Browse files
authored
fix: update metadata_location_ in Table::Refresh() method (#612)
1 parent 5666e67 commit 9190c0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/iceberg/table.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Status Table::Refresh() {
8787
ICEBERG_ASSIGN_OR_RAISE(auto refreshed_table, catalog_->LoadTable(identifier_));
8888
if (metadata_location_ != refreshed_table->metadata_file_location()) {
8989
metadata_ = std::move(refreshed_table->metadata_);
90+
metadata_location_ = std::string(refreshed_table->metadata_file_location());
9091
io_ = std::move(refreshed_table->io_);
9192
metadata_cache_ = std::make_unique<TableMetadataCache>(metadata_.get());
9293
}

0 commit comments

Comments
 (0)