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

Function formattedAST

src/Processors/QueryPlan/ReadFromRemote.cpp:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178static String formattedAST(const ASTPtr & ast, bool enable_analyzer)
179{
180 if (!ast)
181 return {};
182
183 WriteBufferFromOwnString buf;
184 IAST::FormatSettings ast_format_settings(
185 /*one_line=*/true, /*identifier_quoting_rule=*/IdentifierQuotingRule::Always);
186 if (!enable_analyzer)
187 ast_format_settings.collapse_identical_nodes_to_aliases = true;
188 ast->format(buf, ast_format_settings);
189 return buf.str();
190}
191
192ReadFromRemote::ReadFromRemote(
193 ClusterProxy::SelectStreamFactory::Shards shards_,

Callers 4

addLazyPipeMethod · 0.70
addPipeMethod · 0.70

Calls 2

formatMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected