vtgate: list only the problem values when insert fails due to vindex.Verify#5896
vtgate: list only the problem values when insert fails due to vindex.Verify#5896dweitzman merged 1 commit intovitessio:masterfrom
Conversation
Signed-off-by: Mingjian Liu <mingjianliu@pinterest.com>
|
The change looks good to me. Maybe the commit/PR description could be more descriptive? As an example:
|
Thank you so much for that! I just copied your description this time. Learned from it! |
|
@dweitzman @harshit-gangal this PR has been approved but not merged. Is there a reason it has been kept open? |
vtgate: list only the problem values when insert fails due to vindex.Verify
Before this change a batch insert failure due to a vindex Verify error would include all the values given for the vindex column for all rows inserted: both valid and invalid.
That can be confusing when many or most values are valid. Even if you understand that some values are valid in the error, sorting out the valid vs invalid values from the error message can be a pain.
Printing only the invalid values makes the error much more clear.
Signed-off-by: Mingjian Liu mingjianliu@pinterest.com