mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Fix for subqueries with FINAL
This commit is contained in:
parent
1a8f45464c
commit
a3978b24d0
@ -52,7 +52,13 @@ std::stack<const QueryNode *> getSupportingParallelReplicasQuery(const IQueryTre
|
|||||||
const auto & storage = table_node.getStorage();
|
const auto & storage = table_node.getStorage();
|
||||||
/// Here we check StorageDummy as well, to support a query tree with replaced storages.
|
/// Here we check StorageDummy as well, to support a query tree with replaced storages.
|
||||||
if (std::dynamic_pointer_cast<MergeTreeData>(storage) || typeid_cast<const StorageDummy *>(storage.get()))
|
if (std::dynamic_pointer_cast<MergeTreeData>(storage) || typeid_cast<const StorageDummy *>(storage.get()))
|
||||||
|
{
|
||||||
|
/// parallel replicas is not supported with FINAL
|
||||||
|
if (table_node.getTableExpressionModifiers()->hasFinal())
|
||||||
|
return {};
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user