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

Method finish

src/Processors/Transforms/BuildRuntimeFilterTransform.cpp:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void BuildRuntimeFilterTransform::finish()
109{
110 /// A deserialized step has no random key and is never executed in practice; nothing to register.
111 if (filter_key.empty())
112 return;
113 if (!query_context)
114 throw Exception(ErrorCodes::LOGICAL_ERROR, "Query context is not available for BuildRuntimeFilterTransform");
115 auto filter_lookup = query_context->getRuntimeFilterLookup();
116 /// Register under the random key (matches the probe-side `__applyFilter`), not the displayed
117 /// stable `filter_name`. Keeping the key off the plan means it never enters a plan-step hash.
118 /// The stable name is passed alongside for readable stats logging (the key is opaque).
119 filter_lookup->add(filter_key, filter_name, std::move(built_filter));
120}
121
122}

Callers 15

prepareMethod · 0.45
prepareSerializeMethod · 0.45
prepareGenerateMethod · 0.45
prepareMethod · 0.45
prepareMethod · 0.45
prepareMethod · 0.45
prepareMethod · 0.45
generateMethod · 0.45
prepareConsumeMethod · 0.45
prepareMethod · 0.45
prepareMethod · 0.45
prepareMethod · 0.45

Calls 4

ExceptionClass · 0.50
emptyMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected