Skip to content

Commit 27abc3f

Browse files
committed
1
1 parent fc0028f commit 27abc3f

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/iceberg/catalog/rest/rest_catalog.cc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ Result<std::shared_ptr<Table>> RestCatalog::CreateTable(
307307
const std::shared_ptr<PartitionSpec>& spec, const std::shared_ptr<SortOrder>& order,
308308
const std::string& location,
309309
const std::unordered_map<std::string, std::string>& properties) {
310-
ICEBERG_ASSIGN_OR_RAISE(
311-
auto result,
312-
CreateTableInternal(identifier, schema, spec, order, location, properties, false));
313-
return Table::Make(identifier, result.metadata, std::move(result.metadata_location),
314-
file_io_, shared_from_this());
310+
ICEBERG_ASSIGN_OR_RAISE(auto result,
311+
CreateTableInternal(identifier, schema, spec, order, location,
312+
properties, /*stage_create=*/false));
313+
return Table::Make(identifier, std::move(result.metadata),
314+
std::move(result.metadata_location), file_io_, shared_from_this());
315315
}
316316

317317
Result<std::shared_ptr<Table>> RestCatalog::UpdateTable(
@@ -349,14 +349,14 @@ Result<std::shared_ptr<Transaction>> RestCatalog::StageCreateTable(
349349
const std::shared_ptr<PartitionSpec>& spec, const std::shared_ptr<SortOrder>& order,
350350
const std::string& location,
351351
const std::unordered_map<std::string, std::string>& properties) {
352-
ICEBERG_ASSIGN_OR_RAISE(
353-
auto result,
354-
CreateTableInternal(identifier, schema, spec, order, location, properties, true));
355-
ICEBERG_ASSIGN_OR_RAISE(
356-
auto staged_table,
357-
StagedTable::Make(identifier, result.metadata, std::move(result.metadata_location),
358-
file_io_, shared_from_this()));
359-
return Transaction::Make(staged_table, Transaction::Kind::kCreate,
352+
ICEBERG_ASSIGN_OR_RAISE(auto result,
353+
CreateTableInternal(identifier, schema, spec, order, location,
354+
properties, /*stage_create=*/true));
355+
ICEBERG_ASSIGN_OR_RAISE(auto staged_table,
356+
StagedTable::Make(identifier, std::move(result.metadata),
357+
std::move(result.metadata_location), file_io_,
358+
shared_from_this()));
359+
return Transaction::Make(std::move(staged_table), Transaction::Kind::kCreate,
360360
/*auto_commit=*/false);
361361
}
362362

0 commit comments

Comments
 (0)