Mryange opened a new pull request, #47305: URL: https://github.com/apache/doris/pull/47305
### What problem does this PR solve? Runtime filters can be executed either as expressions or predicates. When executed as predicates, some filters may be transformed into other predicates (e.g., minmax filters become max/min predicates for index lookup, or combined with other predicates into key ranges). In such cases, it's difficult to track the filter id. Therefore, we only collect statistics for bloom filters here to help optimizer analysis. like this ``` - BloomRuntimeFilterInfo: - bloom filter id = 3 filtered: 1.004809288B (1004809288) - bloom filter id = 3 input: 1.005995884B (1005995884) - bloom filter id = 5 filtered: 1.000712946B (1000712946) - bloom filter id = 5 input: 1.001186596B (1001186596) ``` data from ``` // predicates - RuntimeFilterInfo: - filter id = 1 filtered: 384.144K (384144) - filter id = 1 input: 473.65K (473650) - filter id = 3 filtered: 4.809288M (4809288) - filter id = 3 input: 5.995884M (5995884) - filter id = 5 filtered: 712.946K (712946) - filter id = 5 input: 1.186596M (1186596) // expr RuntimeFilter: (id = 0, type = minmax): - Info: [Id = 0, IsPushDown = true, RuntimeFilterState = READY, HasRemoteTarget = false, HasLocalTarget = true, Ignored = false, Disabled = false, Type = 1, WaitTimeMS = 1000] - RealRuntimeFilterType: minmax - LocalMergeTime: 0.000000 s - AlwaysTruePassRows: 0 - ExprFilteredRows: 1.0B (1000000000) - ExprInputRows: 1.0B (1000000000) - WaitTime: 84.0ms RuntimeFilter: (id = 1, type = in_or_bloomfilter): - Info: [Id = 1, IsPushDown = true, RuntimeFilterState = READY, HasRemoteTarget = false, HasLocalTarget = true, Ignored = false, Disabled = false, Type = 0, WaitTimeMS = 1000] - RealRuntimeFilterType: in - LocalMergeTime: 0.000000 s - InFilterSize: 378 - AlwaysTruePassRows: 0 - ExprFilteredRows: 1.0B (1000000000) - ExprInputRows: 1.0B (1000000000) - WaitTime: 83.0ms RuntimeFilter: (id = 2, type = minmax): - Info: [Id = 2, IsPushDown = true, RuntimeFilterState = READY, HasRemoteTarget = false, HasLocalTarget = true, Ignored = false, Disabled = false, Type = 1, WaitTimeMS = 1000] - RealRuntimeFilterType: minmax - LocalMergeTime: 0.000000 s - AlwaysTruePassRows: 0 - ExprFilteredRows: 1.0B (1000000000) - ExprInputRows: 1.0B (1000000000) - WaitTime: 86.0ms RuntimeFilter: (id = 3, type = in_or_bloomfilter): - Info: [Id = 3, IsPushDown = true, RuntimeFilterState = READY, HasRemoteTarget = false, HasLocalTarget = true, Ignored = false, Disabled = false, Type = 2, WaitTimeMS = 1000] - RealRuntimeFilterType: bloomfilter - LocalMergeTime: 0.000000 s - BloomFilterSize: 1048576 - AlwaysTruePassRows: 0 - ExprFilteredRows: 1.0B (1000000000) - ExprInputRows: 1.0B (1000000000) - WaitTime: 86.0ms RuntimeFilter: (id = 4, type = minmax): - Info: [Id = 4, IsPushDown = true, RuntimeFilterState = READY, HasRemoteTarget = false, HasLocalTarget = true, Ignored = false, Disabled = false, Type = 1, WaitTimeMS = 1000] - RealRuntimeFilterType: minmax - LocalMergeTime: 0.000000 s - AlwaysTruePassRows: 0 - ExprFilteredRows: 1.0B (1000000000) - ExprInputRows: 1.0B (1000000000) - WaitTime: 112.0ms RuntimeFilter: (id = 5, type = in_or_bloomfilter): - Info: [Id = 5, IsPushDown = true, RuntimeFilterState = READY, HasRemoteTarget = false, HasLocalTarget = true, Ignored = false, Disabled = false, Type = 2, WaitTimeMS = 1000] - RealRuntimeFilterType: bloomfilter - LocalMergeTime: 0.000000 s - BloomFilterSize: 1048576 - AlwaysTruePassRows: 0 - ExprFilteredRows: 1.0B (1000000000) - ExprInputRows: 1.0B (1000000000) - WaitTime: 112.0ms ``` Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into --> -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org