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

Function parseQueryWithOnCluster

src/Parsers/ParserSystemQuery.cpp:162–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162[[nodiscard]] static bool parseQueryWithOnCluster(boost::intrusive_ptr<ASTSystemQuery> & res, IParser::Pos & pos,
163 Expected & expected)
164{
165 String cluster_str;
166 if (ParserKeyword{Keyword::ON}.ignore(pos, expected))
167 {
168 if (!ASTQueryWithOnCluster::parse(pos, cluster_str, expected))
169 return false;
170 }
171 res->cluster = cluster_str;
172
173 return true;
174}
175
176[[nodiscard]] static bool parseDropReplica(boost::intrusive_ptr<ASTSystemQuery> & res, IParser::Pos & pos, Expected & expected, bool database)
177{

Callers 2

parseDropReplicaFunction · 0.85
parseImplMethod · 0.85

Calls 2

parseFunction · 0.50
ignoreMethod · 0.45

Tested by

no test coverage detected