Skip to content

Commit a320f6b

Browse files
authored
Allow multiple LoadSystemFunctions calls (#8567)
1 parent f4b2c61 commit a320f6b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ydb/library/yql/parser/pg_catalog/catalog.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3621,7 +3621,10 @@ ISqlLanguageParser* GetSqlLanguageParser() {
36213621
void LoadSystemFunctions(ISystemFunctionsParser& parser) {
36223622
auto& catalog = TCatalog::MutableInstance();
36233623
with_lock (catalog.ExtensionsGuard) {
3624-
Y_ENSURE(!catalog.State->SystemFunctionInit);
3624+
if (catalog.State->SystemFunctionInit) {
3625+
return;
3626+
}
3627+
36253628
TString data;
36263629
Y_ENSURE(NResource::FindExact("system_functions.sql", &data));
36273630
TVector<TProcDesc> procs;

0 commit comments

Comments
 (0)