BiteTheDDDDt commented on code in PR #62737:
URL: https://github.com/apache/doris/pull/62737#discussion_r3129113506
##########
be/src/exec/runtime_filter/runtime_filter_producer_helper.cpp:
##########
@@ -21,14 +21,25 @@
#include "exec/pipeline/pipeline_task.h"
#include "exec/runtime_filter/runtime_filter_wrapper.h"
+#include "exprs/vexpr.h"
namespace doris {
void RuntimeFilterProducerHelper::_init_expr(
const VExprContextSPtrs& build_expr_ctxs,
const std::vector<TRuntimeFilterDesc>& runtime_filter_descs) {
_filter_expr_contexts.resize(runtime_filter_descs.size());
for (size_t i = 0; i < runtime_filter_descs.size(); i++) {
- _filter_expr_contexts[i] =
build_expr_ctxs[runtime_filter_descs[i].expr_order];
+ if (runtime_filter_descs[i].expr_order >= 0) {
+ _filter_expr_contexts[i] =
build_expr_ctxs[runtime_filter_descs[i].expr_order];
+ } else {
+ // Decoupled RF: srcExpr is not in the builder's equi-conjuncts.
+ // Create a new VExprContext from the src_expr in the thrift
descriptor.
+ VExprContextSPtr ctx;
+ auto st =
VExpr::create_expr_tree(runtime_filter_descs[i].src_expr, ctx);
+ DCHECK(st.ok()) << "Failed to create decoupled RF expr: " <<
st.to_string();
Review Comment:
最好改成能正确返回error status的模式,或者throw exception,而不是DCHECK
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]