Repository navigation
fix: invalidate prepared statements on newer table versions - #25670
Conversation
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? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
LGTM after reviewing this from the catalog-version, prepared-invalidation, and unhappy-path angles.
- correctness:
HasNewerVersionnow treats a table entry as newer only when its captured version is greater than the prepared-plan version, which matches the invalidation contract described by the issues - scope: the change is tight and preserves the existing timestamp gating, table-ID mismatch handling, and deletion invalidation behavior
- unhappy path coverage: the new regression covers newer, equal, and timestamp-ineligible catalog versions, which are the three comparison cases that matter here
I did not find a remaining correctness or hang issue in the latest diff, so approving.
Merge Queue Status
This pull request spent 32 minutes 10 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Tick the box to put this pull request back in the merge queue (same as
|
…igin#25670) ## 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 matrixorigin#25600 Fixes matrixorigin#25622 ## What this PR does / why we need it: Correct the table-version comparison used to invalidate prepared statements after schema changes. A catalog entry is newer when its version is greater than the version captured during prepare. Add regression coverage for newer, equal, and timestamp-ineligible catalog versions. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…igin#25670) ## 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 matrixorigin#25600 Fixes matrixorigin#25622 ## What this PR does / why we need it: Correct the table-version comparison used to invalidate prepared statements after schema changes. A catalog entry is newer when its version is greater than the version captured during prepare. Add regression coverage for newer, equal, and timestamp-ineligible catalog versions. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…igin#25670) ## 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 matrixorigin#25600 Fixes matrixorigin#25622 ## What this PR does / why we need it: Correct the table-version comparison used to invalidate prepared statements after schema changes. A catalog entry is newer when its version is greater than the version captured during prepare. Add regression coverage for newer, equal, and timestamp-ineligible catalog versions. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #25600
Fixes #25622
What this PR does / why we need it:
Correct the table-version comparison used to invalidate prepared statements after schema changes. A catalog entry is newer when its version is greater than the version captured during prepare.
Add regression coverage for newer, equal, and timestamp-ineligible catalog versions.