| 106 | } |
| 107 | |
| 108 | void 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 | } |
no test coverage detected