hoshinojyunn opened a new pull request, #65215:
URL: https://github.com/apache/doris/pull/65215
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: `SHOW DATA ALL` returns detailed database data with 9
metadata columns after `LocalBinlogSize` was added, but the `Quota` and `Left`
summary rows still contained only 8 values. The FE MySQL protocol writer sends
the 9-column metadata first and then serializes each row as-is, so MySQL
clients see an inconsistent result packet and report `ERROR 2027 (HY000):
Malformed packet`. This change pads the detailed `Quota` and `Left` rows with
the missing `LocalBinlogSize` column and adds unit coverage to assert detailed
`SHOW DATA` rows match metadata width.
### Release note
Fix `SHOW DATA ALL` malformed packet caused by inconsistent result row width.
### 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
Unit Test:
`./run-fe-ut.sh --run
org.apache.doris.nereids.trees.plans.commands.ShowDataCommandTest`
- Behavior changed:
- [ ] No.
- [x] Yes. `SHOW DATA ALL` now returns valid result packets instead of
malformed packets when detailed summary rows are emitted.
- 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]