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: remove type width enforcement during execution #75906

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

mgartner
Copy link
Collaborator

@mgartner mgartner commented Feb 2, 2022

Assignment casts are now responsible for ensuring that a value written
to a column has a type and width that match the column type. This commit
removes the logic that performed this validation before assignment casts
existed.

Release note: None

@mgartner mgartner requested review from otan, RaduBerinde and a team February 2, 2022 23:09
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@otan otan left a comment

Choose a reason for hiding this comment

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

LGTM, i'll let radu sign off

@@ -148,18 +148,9 @@ func GenerateInsertRow(

// Verify the column constraints.
//
// We would really like to use enforceLocalColumnConstraints() here,
// but this is not possible because of some brain damage in the
Copy link
Contributor

Choose a reason for hiding this comment

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

brain damage!

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@mgartner
Copy link
Collaborator Author

mgartner commented Feb 3, 2022

TFTRs!

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 3, 2022

Build failed (retrying...):

@mgartner mgartner force-pushed the clean-up-enforce-constraints branch from 02c4db9 to f00eaed Compare February 3, 2022 23:29
@craig
Copy link
Contributor

craig bot commented Feb 3, 2022

Canceled.

@blathers-crl blathers-crl bot requested a review from otan February 3, 2022 23:29
@mgartner mgartner force-pushed the clean-up-enforce-constraints branch from f00eaed to dc6e740 Compare February 4, 2022 14:26
@mgartner
Copy link
Collaborator Author

mgartner commented Feb 4, 2022

TFTRs!

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 4, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 5, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 5, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 5, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 5, 2022

Build failed:

Assignment casts are now responsible for ensuring that a value written
to a column has a type and width that match the column type. This commit
removes the logic that performed this validation before assignment casts
existed.

Release note: None
@mgartner mgartner force-pushed the clean-up-enforce-constraints branch from dc6e740 to cc24310 Compare February 7, 2022 15:02
@mgartner
Copy link
Collaborator Author

mgartner commented Feb 7, 2022

Let's try this again.

bors r+

@mgartner
Copy link
Collaborator Author

mgartner commented Feb 7, 2022

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 8, 2022

Build succeeded:

@craig craig bot merged commit 9b46a59 into cockroachdb:master Feb 8, 2022
@mgartner mgartner deleted the clean-up-enforce-constraints branch February 8, 2022 00:13
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.

4 participants