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

Method toAST

src/Analyzer/IQueryTreeNode.cpp:347–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347ASTPtr IQueryTreeNode::toAST(const ConvertToASTOptions & options) const
348{
349 auto converted_node = toASTImpl(options);
350
351 if (auto * /*ast_with_alias*/ _ = dynamic_cast<ASTWithAlias *>(converted_node.get()))
352 converted_node->setAlias(alias);
353
354 converted_node->setParenthesized(parenthesized);
355
356 return converted_node;
357}
358
359String IQueryTreeNode::formatOriginalASTForErrorMessage() const
360{

Callers 15

toASTImplMethod · 0.45
toASTImplMethod · 0.45
toASTImplMethod · 0.45
toASTImplMethod · 0.45
toASTImplMethod · 0.45
visitFunctionMethod · 0.45
toASTImplMethod · 0.45
toASTImplMethod · 0.45
toASTImplMethod · 0.45
toASTImplMethod · 0.45
toASTImplMethod · 0.45
toASTImplMethod · 0.45

Calls 3

getMethod · 0.45
setAliasMethod · 0.45
setParenthesizedMethod · 0.45

Tested by

no test coverage detected