aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Planner/CollectTableExpressionData.h
blob: ed3f0ff7a473ad52219804446558bd758f179402 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <Planner/PlannerContext.h>

#include <Analyzer/IQueryTreeNode.h>

namespace DB
{

/** Collect table expression data for query node.
  * Collected table expression data is registered in planner context.
  *
  * ALIAS table column nodes are registered in table expression data and replaced in query tree with inner alias expression.
  */
void collectTableExpressionData(QueryTreeNodePtr & query_node, PlannerContextPtr & planner_context);

/** Collect source columns for expression node.
  * Collected source columns are registered in planner context.
  *
  * ALIAS table column nodes are registered in table expression data and replaced in query tree with inner alias expression.
  */
void collectSourceColumns(QueryTreeNodePtr & expression_node, PlannerContextPtr & planner_context);

}