mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Try to make more consisten type check for sets.
This commit is contained in:
parent
880c9aea09
commit
f3398f9908
@ -384,8 +384,11 @@ FutureSetPtr RPNBuilderTreeNode::tryGetPreparedSet(
|
||||
if (node_without_alias->column)
|
||||
{
|
||||
auto future_set = tryGetSetFromDAGNode(node_without_alias);
|
||||
if (const auto * from_subquery = typeid_cast<const FutureSetFromSubquery *>(future_set.get()))
|
||||
return future_set;
|
||||
|
||||
auto set_types = future_set->getTypes();
|
||||
if (types_match(future_set->getTypes()))
|
||||
if (types_match(set_types))
|
||||
return future_set;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user