Gabriel39 opened a new pull request, #67769:
URL: https://github.com/apache/doris/pull/67769
### What problem does this PR solve?
Issue Number: DORIS-28201
Problem Summary:
`INSERT INTO` a file TVF used output names as map keys while binding the
query output. When multiple expressions shared the same alias, the later
expression replaced the earlier one, so the later value was written more than
once.
This change keeps file TVF outputs in query position order. It also adds an
analyzer unit test and a local file TVF regression test for duplicate output
names.
### Release note
Fix duplicate output aliases writing the wrong positional values to file
TVFs.
### Check List (For Author)
- Test
- [x] 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
- Behavior changed:
- [ ] No.
- [x] Yes. Duplicate aliases now preserve their original positional
values.
- 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]