mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
22 lines
661 B
C++
22 lines
661 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST_fwd.h>
|
|
#include <Storages/IStorage_fwd.h>
|
|
#include <Interpreters/Context_fwd.h>
|
|
#include <Analyzer/IQueryTreeNode.h>
|
|
#include <Analyzer/ColumnTransformers.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Build query tree from AST.
|
|
* AST that represent query ASTSelectWithUnionQuery, ASTSelectIntersectExceptQuery, ASTSelectQuery.
|
|
* AST that represent a list of expressions ASTExpressionList.
|
|
* AST that represent expression ASTIdentifier, ASTAsterisk, ASTLiteral, ASTFunction.
|
|
*
|
|
* For QUERY and UNION nodes contexts are created with respect to specified SETTINGS.
|
|
*/
|
|
QueryTreeNodePtr buildQueryTree(ASTPtr query, ContextPtr context);
|
|
|
|
}
|