mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 10:40:49 +00:00
ISSUES-3885 remove useless methods
This commit is contained in:
parent
5906d0b545
commit
cac52f8312
@ -260,21 +260,6 @@ bool PredicateExpressionsOptimizer::isArrayJoinFunction(const ASTPtr & node)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PredicateExpressionsOptimizer::isAggregateFunction(const ASTPtr & node)
|
||||
{
|
||||
if (auto function = typeid_cast<const ASTFunction *>(node.get()))
|
||||
{
|
||||
if (AggregateFunctionFactory::instance().isAggregateFunctionName(function->name))
|
||||
return true;
|
||||
}
|
||||
|
||||
for (const auto & child : node->children)
|
||||
if (isAggregateFunction(child))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PredicateExpressionsOptimizer::optimizeExpression(const ASTPtr & outer_expression, ASTPtr & subquery_expression, ASTSelectQuery * subquery)
|
||||
{
|
||||
ASTPtr new_subquery_expression = subquery_expression;
|
||||
|
@ -65,8 +65,6 @@ private:
|
||||
PUSH_TO_HAVING,
|
||||
};
|
||||
|
||||
bool isAggregateFunction(const ASTPtr & node);
|
||||
|
||||
bool isArrayJoinFunction(const ASTPtr & node);
|
||||
|
||||
std::vector<ASTPtr> splitConjunctionPredicate(ASTPtr & predicate_expression);
|
||||
|
Loading…
Reference in New Issue
Block a user