Analyzer distributed read fix

This commit is contained in:
Maksim Kita 2023-02-05 13:20:10 +01:00
parent 3a624e6bef
commit a090a8449d

View File

@ -679,10 +679,9 @@ void StorageDistributed::read(
} }
const auto & modified_query_ast = ClusterProxy::rewriteSelectQuery( const auto & modified_query_ast = ClusterProxy::rewriteSelectQuery(
local_context, query_info.query, local_context, query_ast,
remote_database, remote_table, remote_table_function_ptr); remote_database, remote_table, remote_table_function_ptr);
/// Return directly (with correct header) if no shard to query. /// Return directly (with correct header) if no shard to query.
if (query_info.getCluster()->getShardsInfo().empty()) if (query_info.getCluster()->getShardsInfo().empty())
{ {