Skip to content

Conversation

@Shubham8287
Copy link
Contributor

@Shubham8287 Shubham8287 commented Dec 10, 2025

Description of Changes

fixes #3861.

While running prechecks for automigration, the range passed to iter_by_col_range_mut was of type AlgebraicValue::I128, even though it should have matched the column’s type.

Fix is straightforward by introducing AlgebraicValue::from_i128 helper.

API and ABI breaking changes

NA

Expected complexity level and risk

1

Testing

  • Modified smoketest to repro reported bug.

@Shubham8287 Shubham8287 force-pushed the shub/fix-auto-inc-migration-bug branch from 7ec0359 to 6d17084 Compare December 10, 2025 11:19
@Shubham8287 Shubham8287 requested a review from Centril December 10, 2025 11:23
Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but from_i128 can be slightly simplified though. Approved with the below changes made.

Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
@Shubham8287 Shubham8287 added this pull request to the merge queue Dec 10, 2025
Merged via the queue into master with commit 17b6ee1 Dec 10, 2025
25 of 26 checks passed
jdetter pushed a commit that referenced this pull request Dec 10, 2025
# Description of Changes
fixes #3861.

While running prechecks for automigration, the `range` passed to
`iter_by_col_range_mut` was of type `AlgebraicValue::I128`, even though
it should have matched the column’s type.

Fix is straightforward by introducing `AlgebraicValue::from_i128`
helper.

# API and ABI breaking changes
NA

# Expected complexity level and risk
1

# Testing

- Modified smoketest to repro reported bug.

---------

Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
@jdetter jdetter changed the title fix automigration bug with auto_inc fix automigration bug with auto_inc Dec 10, 2025
jdetter pushed a commit that referenced this pull request Dec 10, 2025
# Description of Changes
fixes #3861.

While running prechecks for automigration, the `range` passed to
`iter_by_col_range_mut` was of type `AlgebraicValue::I128`, even though
it should have matched the column’s type.

Fix is straightforward by introducing `AlgebraicValue::from_i128`
helper.

# API and ABI breaking changes
NA

# Expected complexity level and risk
1

# Testing

- Modified smoketest to repro reported bug.

---------

Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
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.

automigration: Server panics when if primary_key column is annotated with auto_inc as well.

3 participants