Gabriel39 commented on code in PR #25084:
URL: https://github.com/apache/doris/pull/25084#discussion_r1350084977
##########
be/src/pipeline/exec/multi_cast_data_stream_sink.cpp:
##########
@@ -23,4 +23,27 @@ OperatorPtr
MultiCastDataStreamSinkOperatorBuilder::build_operator() {
return std::make_shared<MultiCastDataStreamSinkOperator>(this, _sink);
}
+Status MultiCastDataStreamSinkLocalState::init(RuntimeState* state,
LocalSinkStateInfo& info) {
+ auto& sinks =
static_cast<MultiCastDataStreamSinkOperatorX*>(_parent)->sink_node().sinks;
+ std::string id_name = " (dst id : ";
+ for (auto& sink : sinks) {
+ id_name += std::to_string(sink.dest_node_id) + ",";
+ }
+ id_name += ")";
+ // create profile
+ _profile = state->obj_pool()->add(new RuntimeProfile(_parent->get_name() +
id_name));
+ _dependency = (MultiCastDependency*)info.dependency;
+ if (_dependency) {
Review Comment:
Is this always true?
--
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]