-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
executor: update oldRow in updateRecord for generated columns if necessary #58474
base: master
Are you sure you want to change the base?
Conversation
[FORMAT CHECKER NOTIFICATION] Notice: To remove the For example:
📖 For more info, you can check the "Contribute Code" section in the development guide. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @joechenrh. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@joechenrh: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #58474 +/- ##
================================================
- Coverage 73.5240% 73.5180% -0.0061%
================================================
Files 1681 1681
Lines 463969 465105 +1136
================================================
+ Hits 341129 341936 +807
- Misses 101997 102350 +353
+ Partials 20843 20819 -24
Flags with carried forward coverage won't be shown. Click here to find out more.
|
What problem does this PR solve?
Issue Number: close #58472
Problem Summary:
What changed and how does it work?
As mentioned in the comment, this PR solves a corner case for generated column.
When we insert a
null
value into not-null column,HandleBadNull
will do the job to convertkindNULL
datum to zero value for given column type.But when we insert a duplicated record, the datum of not-null generated column may still be
kindNULL
. If we have index on this generated column, the index record will be wrongly updated.admin check table
can't find this inconsistency because it can't dintinguish data fromGetZeroValue
andkindNULL
data.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.