Skip to content

Commit

Permalink
Don't create a snapshot when creating empty Iceberg tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed Nov 27, 2024
1 parent 0b24c49 commit 135b6d4
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,7 @@ public Optional<ConnectorOutputMetadata> finishCreateTable(ConnectorSession sess
try {
if (fragments.isEmpty()) {
// Commit the transaction if the table is being created without data
AppendFiles appendFiles = transaction.newFastAppend();
commitUpdateAndTransaction(appendFiles, session, transaction, "create table");
commitTransaction(transaction, "create table");
transaction = null;
return Optional.empty();
}
Expand Down
Loading

0 comments on commit 135b6d4

Please sign in to comment.