mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
Update TableFunctionRemote.cpp
This commit is contained in:
parent
4710d2184c
commit
b1c6fb571e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user