ISSUES-3885 remove useless methods

This commit is contained in:
zhang2014 2019-01-31 07:23:22 +08:00
parent 5906d0b545
commit cac52f8312
2 changed files with 0 additions and 17 deletions

View File

@ -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;

View File

@ -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);