mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
19 lines
457 B
C++
19 lines
457 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <Interpreters/Context_fwd.h>
|
|
|
|
class IQueryTreeNode;
|
|
using QueryTreeNodePtr = std::shared_ptr<IQueryTreeNode>;
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/*
|
|
* For each table expression in the Query Tree generate and add a unique alias.
|
|
* If table expression had an alias in initial query tree, override it.
|
|
*/
|
|
void createUniqueTableAliases(QueryTreeNodePtr & node, const QueryTreeNodePtr & table_expression, const ContextPtr & context);
|
|
|
|
}
|