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: revert removal of datum size adjustment #74229

Closed
wants to merge 3 commits into from

Conversation

mgartner
Copy link
Collaborator

Adjusting INSERT, UPDATE, and UPSERT values right before they are
written in the execution engine is no longer necessary with assignment
casts, and it is incorrect (see #69665). However, we will continue to
perform these adjustments to avoid regressions that assignment casts may
cause until we have more confidene in assignment casts. In test builds,
an assertion has been added to ensure that the adjustments have no
effect, which should help catch potential bugs in assignment casts.

Release note: None

Previously, the WithScan columns of cascade FK updates were given the
type of the child table's target column. This was incorrect when the
parent column type did not match. This commit fixes the issue by given
the WithScan columns the type of the buffered columns used to update the
parent relation.

This did not cause any known bugs, but it is required to implement
assignment casts with FK cascades.

Release note: None
Adjusting INSERT, UPDATE, and UPSERT values right before they are
written in the execution engine is no longer necessary with assignment
casts, and it is incorrect (see cockroachdb#69665). However, we will continue to
perform these adjustments to avoid regressions that assignment casts may
cause until we have more confidene in assignment casts. In test builds,
an assertion has been added to ensure that the adjustments have no
effect, which should help catch potential bugs in assignment casts.

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@mgartner mgartner closed this Feb 4, 2022
@mgartner mgartner deleted the adjust-panic branch February 4, 2022 17:09
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.

2 participants