mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Fix: check if table expression is present
This commit is contained in:
parent
49fc4cb87b
commit
29fffd34ac
@ -54,7 +54,7 @@ std::stack<const QueryNode *> getSupportingParallelReplicasQuery(const IQueryTre
|
|||||||
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
|
/// parallel replicas is not supported with FINAL
|
||||||
if (table_node.getTableExpressionModifiers()->hasFinal())
|
if (table_node.getTableExpressionModifiers() && table_node.getTableExpressionModifiers()->hasFinal())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
Reference in New Issue
Block a user