Add const.

This commit is contained in:
root 2019-09-28 00:38:13 +08:00
parent bcc24d3cbc
commit f54f55bbdc
3 changed files with 3 additions and 3 deletions

View File

@ -689,7 +689,7 @@ InterpreterSelectQuery::analyzeExpressions(
}
BlockInputStreamPtr InterpreterSelectQuery::createCheckNonEmptySetIfNeed(BlockInputStreamPtr stream, ExpressionActionsPtr expression)
BlockInputStreamPtr InterpreterSelectQuery::createCheckNonEmptySetIfNeed(BlockInputStreamPtr stream, const ExpressionActionsPtr & expression) const
{
for (const auto & action : expression->getActions())
{

View File

@ -254,7 +254,7 @@ private:
void initSettings();
/// Whether you need to check if the set is empty before ExpressionActions is executed. Create a CheckNonEmptySetBlockInputStream if needed.
BlockInputStreamPtr createCheckNonEmptySetIfNeed(BlockInputStreamPtr stream, ExpressionActionsPtr expression);
BlockInputStreamPtr createCheckNonEmptySetIfNeed(BlockInputStreamPtr stream, const ExpressionActionsPtr & expression) const;
const SelectQueryOptions options;
ASTPtr query_ptr;

View File

@ -615,7 +615,7 @@ std::vector<const ASTFunction *> getAggregates(const ASTPtr & query)
return {};
}
void collectCanShortCircuitSet(ASTPtr & ast, NameSet & need_check_empty_sets)
void collectCanShortCircuitSet(const ASTPtr & ast, NameSet & need_check_empty_sets)
{
if (const auto * function = ast->as<ASTFunction>())
{