You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c611239
Browse filesBrowse the repository at this point in the historyBrowse files
[opt](exec) Avoid copies when publishing projection results (apache#66085)
### What problem does this PR solve?
Projection results were converted to mutable columns before being
published. Shared results such as SlotRef columns therefore triggered
COW clones and full-column copies.
This change keeps scoped output-block reuse while moving exclusive
results directly and publishing shared immutable columns after restore.
It also makes `ColumnConst` and `ColumnVariant` ownership checks include
their nested columns, and uses actual peak memory tracking instead of
charging shared input buffers as projection allocations.
### 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:
apache/doris-website#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 -->
0 commit comments