HappenLee commented on code in PR #21412:
URL: https://github.com/apache/doris/pull/21412#discussion_r1251426619
##########
be/src/pipeline/exec/multi_cast_data_stream_source.cpp:
##########
@@ -43,10 +45,38 @@ const RowDescriptor&
MultiCastDataStreamerSourceOperatorBuilder::row_desc() {
MultiCastDataStreamerSourceOperator::MultiCastDataStreamerSourceOperator(
OperatorBuilderBase* operator_builder, const int consumer_id,
- std::shared_ptr<MultiCastDataStreamer>& data_streamer)
+ std::shared_ptr<MultiCastDataStreamer>& data_streamer, const
TDataStreamSink& sink)
: OperatorBase(operator_builder),
+ vectorized::RuntimeFilterConsumer(sink.dest_node_id,
sink.runtime_filters,
+ data_streamer->row_desc(),
_conjuncts),
_consumer_id(consumer_id),
- _multi_cast_data_streamer(data_streamer) {};
+ _multi_cast_data_streamer(data_streamer),
+ _t_data_stream_sink(sink) {}
+
+Status MultiCastDataStreamerSourceOperator::prepare(doris::RuntimeState*
state) {
+ RETURN_IF_ERROR(vectorized::RuntimeFilterConsumer::init(state));
+ _register_runtime_filter();
+ if (_t_data_stream_sink.__isset.output_exprs) {
+
RETURN_IF_ERROR(vectorized::VExpr::create_expr_trees(_t_data_stream_sink.output_exprs,
+
_output_expr_contexts));
+ RETURN_IF_ERROR(vectorized::VExpr::prepare(_output_expr_contexts,
state, row_desc()));
+ }
+
+ if (_t_data_stream_sink.__isset.conjuncts) {
+ RETURN_IF_ERROR(
+
vectorized::VExpr::create_expr_trees(_t_data_stream_sink.conjuncts,
_conjuncts));
+ RETURN_IF_ERROR(vectorized::VExpr::prepare(_conjuncts, state,
row_desc()));
+ }
+ return Status::OK();
+}
+
+Status MultiCastDataStreamerSourceOperator::open(doris::RuntimeState* state) {
+ return _acquire_runtime_filter(state);
Review Comment:
``` _acquire_runtime_filter(bool);```
--
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]