Skip to content

Comments

Safely cast name as numeric#426

Merged
omfj merged 1 commit intosummer25-week-30from
422-dataerror-value-578094500011955-is-out-of-range-for-type-integer
Jul 25, 2025
Merged

Safely cast name as numeric#426
omfj merged 1 commit intosummer25-week-30from
422-dataerror-value-578094500011955-is-out-of-range-for-type-integer

Conversation

@omfj
Copy link
Contributor

@omfj omfj commented Jul 24, 2025

Only casts name as integer if it is <=18 in length. Although a BIG INT can be 19 digits, not every 19 digit number is fits inside of a BIG INT.

Also adds a annotate_numeric_name to QuerySet[Sample] so that it can be reused in the same way later through out the app easily.

@omfj omfj linked an issue Jul 24, 2025 that may be closed by this pull request
@omfj omfj force-pushed the 422-dataerror-value-578094500011955-is-out-of-range-for-type-integer branch from 6dcb1b9 to 6f923df Compare July 24, 2025 14:48
@omfj omfj changed the base branch from main to summer25-week-30 July 24, 2025 15:37
@omfj omfj force-pushed the 422-dataerror-value-578094500011955-is-out-of-range-for-type-integer branch from 6f923df to 4169b1a Compare July 24, 2025 15:39
@omfj omfj merged commit ecd9ea7 into summer25-week-30 Jul 25, 2025
8 checks passed
@omfj omfj deleted the 422-dataerror-value-578094500011955-is-out-of-range-for-type-integer branch July 25, 2025 05:36
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.

DataError: value "578094500011955" is out of range for type integer

2 participants