Fixed restart broken

This commit is contained in:
divanik 2024-10-29 17:02:43 +00:00
parent 886603d625
commit 7d2fc48b6d

View File

@ -118,14 +118,15 @@ StorageObjectStorage::StorageObjectStorage(
}
catch (...)
{
if (mode <= LoadingStrictnessLevel::CREATE)
if (mode <= LoadingStrictnessLevel::CREATE || columns_.empty()
|| (configuration->format
== "auto")) // If we don't have format or schema yet, we can't ignore failed configuration update, because relevant configuration is crucial for format and schema inference
{
throw;
}
else
{
tryLogCurrentException(__PRETTY_FUNCTION__);
return;
}
}