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

Method attachQueryForLog

src/Interpreters/ThreadStatusExt.cpp:255–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void ThreadGroup::attachQueryForLog(const String & query_, UInt64 normalized_hash)
256{
257 auto hash = normalized_hash ? normalized_hash : normalizedQueryHash(query_, false);
258
259 std::lock_guard lock(mutex);
260 shared_data.query_for_logs = query_;
261 shared_data.normalized_query_hash = hash;
262}
263
264void ThreadStatus::attachQueryForLog(const String & query_)
265{

Callers

nothing calls this directly

Calls 2

normalizedQueryHashFunction · 0.85
ExceptionClass · 0.70

Tested by

no test coverage detected