suxiaogang223 opened a new pull request, #66521:
URL: https://github.com/apache/doris/pull/66521
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary:
Iceberg eager scans attach an SDK metrics reporter and drain the resulting
scan profile immediately after planning. Streaming batch scans skipped both
steps, so their query profiles showed no Iceberg scan metrics even though the
same files and manifests were planned.
This change attaches the existing reporter to streaming scans and drains it
after the split source closes. Because streaming split generation runs
asynchronously, the query execution summary is captured before dispatch.
Profile-group creation is also serialized so concurrent streaming scan nodes
cannot replace one another's metric groups.
### Release note
Iceberg batch-mode queries now report the same scan metrics as non-batch
queries.
### Check List (For Author)
- Test
- [ ] Regression test
- [x] 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
Validation performed:
- IcebergScanPlanProviderTest: 129 tests passed.
- PluginDrivenScanNodeScanProfileTest: 4 tests passed.
- Connector SPI test suite: 140 tests passed.
- Full FE build: `./build.sh --fe` succeeded.
- Behavior changed:
- [ ] No.
- [x] Yes. Iceberg batch-mode query profiles now include scan metrics.
- Does this need documentation?
- [x] No.
- [ ] Yes.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]