mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fixed restart broken
This commit is contained in:
parent
886603d625
commit
7d2fc48b6d
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user