Repository navigation
fix(vector): align null masks for offset shrink (#27446) - #32347
Conversation
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes #27398 ## What this PR does / why we need it: Propagates the vector window offset when remapping null and grouping bitmaps during fixed-vector mask shrink, preventing nullable indexed UPDATE rows from becoming misaligned. Adds focused null/vector unit tests and a deterministic 10,000-row BVT regression. The regression passes all 265 commands after the fix; the affected functions have 97.1% to 100% local coverage. Full repository unit and race suites, static checks, build, vet, and a 218,939-event Kafka-to-MatrixOne consistency run also passed locally. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 4089fc4ae8210cdcfc3bf851922a6830202c712e
Assessment: approve
The backport correctly aligns null and grouping masks with offset-adjusted payload selection. It extends the existing bitmap/nulls owners without adding a parallel mechanism. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed all eight changed paths, affected consumers, both discussion records and closing issue 32249.
-
Independently verified all 10,000 fixture values, the 250×40 INSERT boundaries and all seven expected aggregates.
-
Source-extracted component probe passed 3,840 combinations against an independent row oracle; the merge-base control exposed the original misalignment. Receipt: checks/1794050739979202868-3.json.
-
Isolation preflight and final 24-check static/evidence audit passed. Source remains unchanged. Receipts and retained logs are correlated in validation-evidence.json.
Limitations:
-
Full package/native tests and SQL/BVT were not completed locally: native prerequisites are missing and dependency resolution timed out.
-
The component probe uses minimal vector support. Author-reported package/build/vet checks lack raw logs, and substantive CI remains pending in the supplied snapshot.
Backport of #27446 to 4.2-dev.
Fixes #32249.
Validation: