Skip to content

Commit 121634e

Browse files
authored
Merge pull request #127 from hafenkran/fix_retry_attach
Allow retrying failed BQ catalog loads
2 parents cf415f3 + 0d9970b commit 121634e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/storage/bigquery_catalog_set.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ void BigqueryCatalogSet::TryLoadEntries(ClientContext &context) {
8686
return;
8787
}
8888

89-
is_loaded = true;
90-
LoadEntries(context);
89+
try {
90+
LoadEntries(context);
91+
is_loaded = true;
92+
} catch (...) {
93+
is_loaded = false;
94+
throw;
95+
}
9196
}
9297

9398
BigqueryInSchemaSet::BigqueryInSchemaSet(BigquerySchemaEntry &schema)

0 commit comments

Comments
 (0)