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

Method copyToQuery

src/Parsers/CreateQueryUUIDs.cpp:212–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void CreateQueryUUIDs::copyToQuery(ASTCreateQuery & query) const
213{
214 query.uuid = uuid;
215
216 if (query.targets)
217 query.targets->resetInnerUUIDs();
218
219 if (!targets_inner_uuids.empty())
220 {
221 if (!query.targets)
222 query.set(query.targets, make_intrusive<ASTViewTargets>());
223
224 for (const auto & [kind, inner_uuid] : targets_inner_uuids)
225 {
226 if (inner_uuid != UUIDHelpers::Nil)
227 query.targets->setInnerUUID(kind, inner_uuid);
228 }
229 }
230}
231
232}

Callers 4

generateRandomUUIDsMethod · 0.45
resetUUIDsMethod · 0.45
generateUUIDForTableMethod · 0.45
generateUUIDForTableMethod · 0.45

Calls 4

resetInnerUUIDsMethod · 0.80
setInnerUUIDMethod · 0.80
emptyMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected