Skip to content

Commit

Permalink
Enable auto create for dynamic routing (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanck authored Oct 9, 2023
1 parent bf82d60 commit d723d3e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ public RecordWriter createWriter(
try {
table = catalog.loadTable(identifier);
} catch (NoSuchTableException nst) {
if (ignoreMissingTable) {
if (config.autoCreateEnabled()) {
table = autoCreateTable(tableName, sample);
} else if (ignoreMissingTable) {
return new RecordWriter() {};
} else if (!config.autoCreateEnabled()) {
} else {
throw nst;
}

table = autoCreateTable(tableName, sample);
}

return new IcebergWriter(table, tableName, config);
Expand Down

0 comments on commit d723d3e

Please sign in to comment.