Gabriel39 opened a new pull request, #68231:
URL: https://github.com/apache/doris/pull/68231
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary:
External scanner metadata was returned in tuple-slot order while Arrow
batches from the memory scratch sink followed fragment output expression order.
Reordered projections could therefore bind values to the wrong columns.
Build the selected-column schema from the fragment output slot references so
metadata and data use the same order. Add a BE unit test that projects two
slots in reverse descriptor order and verifies the returned names and types
follow the projection.
### Release note
Fix external scanner reads with reordered projected columns.
### Check List (For Author)
- Test
- [ ] Regression test
- [x] Unit Test
-
`FragmentMgrExternalScanTest.SelectedColumnsFollowOutputExpressionOrder`
- [ ] Manual test
- [ ] No need to test or manual test.
- Behavior changed:
- [ ] No.
- [x] Yes. External scanner schema now follows projection order.
- 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]