Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: use uint32 for DOid #82430

Merged
merged 3 commits into from
Jun 7, 2022
Merged

sql: use uint32 for DOid #82430

merged 3 commits into from
Jun 7, 2022

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented Jun 3, 2022

refs #41904

This resolves a piece of tech debt that has caused us a few surprises
and bugs in the past. This doesn't change anything about the on-disk
representation -- it just makes it so that OIDs handled in memory are
more reliably unsigned 32 bit integers.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rafiss rafiss force-pushed the oid-uint32 branch 6 times, most recently from 86a9ac1 to f6ca7b0 Compare June 7, 2022 18:10
This resolves a piece of tech debt that has caused us a few surprises
and bugs in the past. This doesn't change anything about the on-disk
representation -- it just makes it so that OIDs handled in memory are
more reliably unsigned 32 bit integers.

Release note: None
Release note (sql change): Casting from an integer to OID, or calling
the `oid` builtin function, using an integer that is larger than 32 bits
now results in an error. Specifically, the range for valid inputs is
[MinInt32, MaxUint32].
Release note (sql change): An error is now returned if an OID is
compared to an integer that is out of the allowable range of OID input
values, which is [MinInt32, MaxUint32].
@rafiss rafiss requested a review from otan June 7, 2022 20:34
@rafiss rafiss marked this pull request as ready for review June 7, 2022 20:34
@rafiss rafiss requested a review from a team as a code owner June 7, 2022 20:34
@rafiss rafiss requested review from a team June 7, 2022 20:34
@rafiss rafiss requested review from a team as code owners June 7, 2022 20:34
@rafiss
Copy link
Collaborator Author

rafiss commented Jun 7, 2022

tft!

bors r=otan

@craig
Copy link
Contributor

craig bot commented Jun 7, 2022

Build succeeded:

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.

None yet

3 participants