morningman commented on code in PR #11000: URL: https://github.com/apache/doris/pull/11000#discussion_r925101385
########## be/src/vec/exec/file_scan_node.cpp: ########## @@ -90,18 +115,102 @@ Status FileScanNode::open(RuntimeState* state) { RETURN_IF_ERROR(ExecNode::open(state)); RETURN_IF_CANCELLED(state); + RETURN_IF_ERROR(_acquire_and_build_runtime_filter(state)); + RETURN_IF_ERROR(start_scanners()); return Status::OK(); } +Status FileScanNode::_acquire_and_build_runtime_filter(RuntimeState* state) { + // acquire runtime filter + _runtime_filter_ctxs.resize(_runtime_filter_descs.size()); + for (size_t i = 0; i < _runtime_filter_descs.size(); ++i) { + auto& filter_desc = _runtime_filter_descs[i]; + IRuntimeFilter* runtime_filter = nullptr; + state->runtime_filter_mgr()->get_consume_filter(filter_desc.filter_id, &runtime_filter); + DCHECK(runtime_filter != nullptr); Review Comment: No, this only take effect when compiling BE with DEBUG mode -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org