BiteTheDDDDt opened a new pull request, #62314: URL: https://github.com/apache/doris/pull/62314
### What problem does this PR solve? Issue Number: close #xxx Problem Summary: `RunTimeFilterTranslatorV2.translateRuntimeFilterGroup()` used the 2-arg `RuntimeFilterTarget` constructor which hard-codes `isLocalTarget=false`, causing all V2-translated runtime filters (for INTERSECT/EXCEPT) to be incorrectly marked as remote-only. This leads to: - Filters always routed through global merge path instead of local delivery - Consumer registered in `global_runtime_filter_mgr` instead of `local_runtime_filter_mgr` - Consumer wait time shortened (may cause RF timeout and miss filtering) - Suboptimal bloom filter sizing due to incorrect `needShuffle` computation The fix computes `isLocalTarget` by comparing target and source fragment IDs, consistent with the V1 translator (`RuntimeFilterTranslator`) approach. Uses `allMatch` semantics (if any target is remote, all are marked remote) to satisfy the BE constraint that `has_remote_targets != has_local_targets`. ### Release note None ### Check List (For Author) - Test: Unit Test (RunTimeFilterTranslatorV2Test - 3 test cases covering INTERSECT, EXCEPT, and multi-child INTERSECT) - Behavior changed: No (bug fix, previously always remote, now correctly computed) - Does this need documentation: No -- 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]
