BiteTheDDDDt commented on code in PR #64851:
URL: https://github.com/apache/doris/pull/64851#discussion_r3479609616


##########
be/src/exec/runtime_filter/runtime_filter_mgr.cpp:
##########
@@ -48,6 +51,217 @@
 
 namespace doris {
 
+namespace {
+
+TNetworkAddress to_thrift_network_address(const PNetworkAddress& address) {
+    TNetworkAddress result;
+    result.hostname = address.hostname();
+    result.port = address.port();
+    return result;
+}
+
+PNetworkAddress to_proto_network_address(const TNetworkAddress& address) {
+    PNetworkAddress result;
+    result.set_hostname(address.hostname);
+    result.set_port(address.port);
+    return result;
+}
+
+bool can_use_tree_publish_targets(const 
std::vector<TRuntimeFilterTargetParamsV2>& targets) {
+    return std::all_of(targets.begin(), targets.end(), [](const auto& target) {
+        return target.__isset.target_fragment_ids && 
!target.target_fragment_ids.empty();

Review Comment:
   没懂为啥要判断这个__isset.target_fragment_ids,这个还能没设置或者为空?感觉不可能吧



-- 
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]

Reply via email to