This commit is contained in:
kssenii 2022-12-15 09:53:44 +01:00
parent 250ad8889e
commit d1b6ccd437

View File

@ -83,6 +83,7 @@ static const std::unordered_set<std::string_view> required_configuration_keys =
static std::unordered_set<std::string_view> optional_configuration_keys = { static std::unordered_set<std::string_view> optional_configuration_keys = {
"format", "format",
"compression", "compression",
"compression_method",
"structure", "structure",
"access_key_id", "access_key_id",
"secret_access_key", "secret_access_key",
@ -1213,7 +1214,7 @@ void StorageS3::processNamedCollectionResult(StorageS3Configuration & configurat
filename = collection.get<String>(key); filename = collection.get<String>(key);
else if (key == "format") else if (key == "format")
configuration.format = collection.get<String>(key); configuration.format = collection.get<String>(key);
else if (key == "compression") else if (key == "compression" || key == "compression_method")
configuration.compression_method = collection.get<String>(key); configuration.compression_method = collection.get<String>(key);
else if (key == "structure") else if (key == "structure")
configuration.structure = collection.get<String>(key); configuration.structure = collection.get<String>(key);