Update src/Storages/StorageDistributed.cpp

Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
This commit is contained in:
Amos Bird 2021-03-12 17:10:08 +08:00 committed by GitHub
parent e9f8dd645e
commit 5881270f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -526,10 +526,6 @@ void StorageDistributed::read(
const size_t /*max_block_size*/,
const unsigned /*num_streams*/)
{
// Return directly if no shard to query.
if (query_info.cluster->getShardsInfo().empty())
return;
const auto & modified_query_ast = rewriteSelectQuery(
query_info.query, remote_database, remote_table, remote_table_function_ptr);