-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: non-nullable column with null value #70628
Comments
Note this issue as well, which may or may not be related: #69867 |
I'm guessing it is not related because the repro here doesn't use CTAS (unless the queries used here use the same infrastructure as CTAS). |
I've simplified the reproduction a bit, and it looks like it relies on several things: multiple column families, virtual/stored columns, |
Just to clarify, does your repro rely on |
I didn't investigate that, but in the schema above it is |
Adding a GA blocker label since it is a regression from 21.1.9. |
This comment has been minimized.
This comment has been minimized.
IIRC I did try running this on top of #70722 last week, and the problem was still present. |
Ahhh. That might be because #70722 only fixes assignment casts for INSERTs, not UPDATEs or UPSERTs. The repro above has some UPDATEs that could trigger the bug. I hope to have UPDATEs and UPSERTs fixed soon in another PR. |
This is reproducible in 21.1.7 by switching the
|
We've determined this is not a GA blocker |
Fixes cockroachdb#70628 Release note: None
Fixes cockroachdb#70628 Release note: None
74180: sql: add assignment cast for UPDATEs r=mgartner a=mgartner #### opt: fix FK WithScan column type 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 #### sql: add assignment cast for UPDATEs Fixes #70628 Release note: None #### opt: give synthesized assignment cast columns descriptive names Columns synthesized for assignment casts now have more descriptive metadata names in the form `<target_column_name>_cast`. This is purely an aesthetic change and has no effect on semantics. Release note: None Co-authored-by: Marcus Gartner <[email protected]>
Fixes cockroachdb#70628 Release note: None
results in
The text was updated successfully, but these errors were encountered: