mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Add const.
This commit is contained in:
parent
bcc24d3cbc
commit
f54f55bbdc
@ -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())
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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>())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user