MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / toASTImpl

Method toASTImpl

src/Analyzer/TableFunctionNode.cpp:145–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145ASTPtr TableFunctionNode::toASTImpl(const ConvertToASTOptions & options) const
146{
147 auto table_function_ast = make_intrusive<ASTFunction>();
148
149 table_function_ast->name = table_function_name;
150
151 const auto & arguments = getArguments();
152 table_function_ast->children.push_back(arguments.toAST(options));
153 table_function_ast->arguments = table_function_ast->children.back();
154
155 if (!settings_changes.empty())
156 {
157 auto settings_ast = make_intrusive<ASTSetQuery>();
158 settings_ast->changes = settings_changes;
159 settings_ast->is_standalone = false;
160 table_function_ast->arguments->children.push_back(std::move(settings_ast));
161 }
162
163 return table_function_ast;
164}
165
166}

Callers

nothing calls this directly

Calls 4

push_backMethod · 0.45
toASTMethod · 0.45
backMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected