Update TableFunctionRemote.cpp

This commit is contained in:
Mikhail Korotov 2019-10-10 01:25:17 +03:00 committed by GitHub
parent 4710d2184c
commit b1c6fb571e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,8 @@ StoragePtr TableFunctionRemote::executeImpl(const ASTPtr & ast_function, const C
/// Use an existing cluster from the main config
cluster = context.getCluster(cluster_name);
}
else {
else
{
/// Create new cluster from the scratch
size_t max_addresses = context.getSettingsRef().table_function_remote_max_addresses;
std::vector<String> shards = parseRemoteDescription(cluster_description, 0, cluster_description.size(), ',', max_addresses);