mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
Don't visit functions with multiple arguments in MonotonicityCheckMatcher
This commit is contained in:
parent
2c637d2b37
commit
bbcd10f415
@ -131,8 +131,11 @@ public:
|
|||||||
data.reject();
|
data.reject();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool needChildVisit(const ASTPtr &, const ASTPtr &)
|
static bool needChildVisit(const ASTPtr & parent, const ASTPtr &)
|
||||||
{
|
{
|
||||||
|
if (const auto * func = typeid_cast<const ASTFunction *>(parent.get()))
|
||||||
|
return func->children.size() < 2;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user