mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Review fixes
This commit is contained in:
parent
bb0beb7449
commit
d7b2ea60eb
@ -61,7 +61,7 @@ namespace
|
||||
}
|
||||
|
||||
auto value = literal_value->as<ASTLiteral>()->value;
|
||||
return std::pair{key, value};
|
||||
return std::pair{key, Field(value)};
|
||||
}
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ MutableNamedCollectionPtr tryGetNamedCollectionWithOverrides(
|
||||
|
||||
for (auto * it = std::next(asts.begin()); it != asts.end(); ++it)
|
||||
{
|
||||
auto value_override = getKeyValueFromAST(*it, complex_args != nullptr, context);
|
||||
auto value_override = getKeyValueFromAST(*it, /* fallback_to_ast_value */complex_args != nullptr, context);
|
||||
|
||||
if (!value_override && !(*it)->as<ASTFunction>())
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Expected key-value argument or function");
|
||||
|
@ -102,8 +102,8 @@ void registerStorageExternalDistributed(StorageFactory & factory)
|
||||
"engine_name, named_collection and/or description");
|
||||
|
||||
auto context = args.getLocalContext();
|
||||
[[maybe_unused]] const auto & settings = context->getSettingsRef();
|
||||
size_t max_addresses = context->getSettingsRef().glob_expansion_max_elements;
|
||||
const auto & settings = context->getSettingsRef();
|
||||
size_t max_addresses = settings.glob_expansion_max_elements;
|
||||
auto get_addresses = [&](const std::string addresses_expr)
|
||||
{
|
||||
return parseRemoteDescription(addresses_expr, 0, addresses_expr.size(), ',', max_addresses);
|
||||
|
Loading…
Reference in New Issue
Block a user