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

Function registerFunctions

src/Functions/registerFunctions.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10void registerFunctions();
11void registerFunctions()
12{
13 /// Registration runs once and allocates while building static function metadata (for example
14 /// HMAC enumerates the OpenSSL digests through a C callback). It must not be subject to the
15 /// memory tracker's limit or fault injection, so block tracking for its duration.
16 MemoryTrackerBlockerInThread blocker;
17
18 auto & factory = FunctionFactory::instance();
19
20 for (const auto & [_, reg] : FunctionRegisterMap::instance())
21 reg(factory);
22}
23
24}

Callers 6

mainMethod · 0.85
mainMethod · 0.85
mainMethod · 0.85
RegisterMethod · 0.85
LLVMFuzzerInitializeFunction · 0.85

Calls

no outgoing calls

Tested by 1

RegisterMethod · 0.68