diff --git a/src/Storages/ObjectStorage/StorageObjectStorage.cpp b/src/Storages/ObjectStorage/StorageObjectStorage.cpp index 89a5bfe9469..9fa7b669b79 100644 --- a/src/Storages/ObjectStorage/StorageObjectStorage.cpp +++ b/src/Storages/ObjectStorage/StorageObjectStorage.cpp @@ -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; } }