mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix 'set' index not working with IN
This commit is contained in:
parent
8eee9a61aa
commit
d44242e3f2
@ -482,12 +482,13 @@ bool MergeTreeIndexConditionSet::checkDAGUseless(const ActionsDAG::Node & node,
|
||||
RPNBuilderTreeContext tree_context(context);
|
||||
RPNBuilderTreeNode tree_node(node_to_check, tree_context);
|
||||
|
||||
if (node.column && isColumnConst(*node.column)
|
||||
&& !WhichDataType(node.result_type).isSet())
|
||||
if (node.column && isColumnConst(*node.column))
|
||||
{
|
||||
if (!atomic || WhichDataType(node.result_type).isSet())
|
||||
return false;
|
||||
Field literal;
|
||||
node.column->get(0, literal);
|
||||
return !atomic && literal.safeGet<bool>();
|
||||
return literal.safeGet<bool>();
|
||||
}
|
||||
else if (node.type == ActionsDAG::ActionType::FUNCTION)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user