Repository navigation
fix(frontend): reject reversed pick snapshot ranges - #26193
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? |
Merge Queue Status
This pull request spent 2 hours 8 minutes 51 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #26193 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
Failing checks:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #26078
What this PR does / why we need it:
DATA BRANCH PICK ... BETWEEN SNAPSHOTresolved both snapshot timestamps but did not validate their order. A reversed range reached the collect-range intersection as an empty interval and incorrectly succeeded as a no-op.This change rejects only ranges whose start timestamp is later than the end timestamp. Forward and equal timestamp ranges remain valid. The error identifies both snapshot names.
Coverage includes physical-time order, logical-time order, equal timestamps, the full snapshot resolution path, and an end-to-end BVT case using two real snapshots.
Validation:
go test ./pkg/frontend -run 'Test(ValidateBetweenSnapshotRange|ResolveBetweenSnapshotsReversedRange)$' -count=1 -coverprofile=/tmp/pr26193-frontend.covergo vet ./pkg/frontendmake buildpick_10.sqlBVT: 111/111 statements passedgit diff --check