Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
yariks5s authored Dec 16, 2024
1 parent 0c62b56 commit abdda03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions src/Analyzer/QueryNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -630,19 +630,9 @@ class QueryNode final : public IQueryTreeNode

void dumpTreeImpl(WriteBuffer & buffer, FormatState & format_state, size_t indent) const override;

bool hasProjectionAliasesToOverride()
void setProjectionAliasesToOverride(Names pr_aliases)
{
return !projection_aliases_to_override.empty();
}

Names getProjectionAliasesToOverride()
{
return projection_aliases_to_override;
}

void setProjectionAliasesToOverride(Names && pr_aliases)
{
projection_aliases_to_override = pr_aliases;
projection_aliases_to_override = std::move(pr_aliases);
}

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzer/QueryTreeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ QueryTreeNodePtr QueryTreeBuilder::buildSelectExpression(const ASTPtr & select_q
collected_aliases.push_back(alias_ast.name());
}

current_query_tree->setProjectionAliasesToOverride(std::move(collected_aliases));
current_query_tree->setProjectionAliasesToOverride(collected_aliases);
}

auto prewhere_expression = select_query_typed.prewhere();
Expand Down

0 comments on commit abdda03

Please sign in to comment.