Skip to content

Dst bug: fix seqeuence migration precheck.#5561

Open
Shubham8287 wants to merge 1 commit into
masterfrom
shub/sequence-precheck-fix
Open

Dst bug: fix seqeuence migration precheck.#5561
Shubham8287 wants to merge 1 commit into
masterfrom
shub/sequence-precheck-fix

Conversation

@Shubham8287

@Shubham8287 Shubham8287 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

It fixes two bugs, both let SequenceRangeValid migration pre-check to pass incorrectly, which will cause UniqueConstraintVoilation error:

  1. max calculation was buggied due to casting in AlgebraicValue::from_i128 ( u64::MAX as i64 == -1), it should be saturating conversion (Found by DST). It will resulting range to be formed as min..-1 causing non-effecting check.
  2. range for iter_by_col_range_mut excludes max when it should be included.

API and ABI breaking changes

NA

Expected complexity level and risk

Testing

Unit test.

@Shubham8287
Shubham8287 force-pushed the shub/sequence-precheck-fix branch from fab0668 to 2a1bd3a Compare July 17, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant