-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-21.0] Use proper keyspace when updating the query graph of a…
… reference DML (#17226) (#17258) Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Signed-off-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com> Co-authored-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
- Loading branch information
1 parent
b2645cd
commit e72904b
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
go/vt/vtgate/planbuilder/testdata/dml_cases_with_user_as_default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
{ | ||
"comment": "Update reference table from sharded keyspace to unsharded keyspace", | ||
"query": "update ambiguous_ref_with_source set done = true where id = 1;", | ||
"plan": { | ||
"QueryType": "UPDATE", | ||
"Original": "update ambiguous_ref_with_source set done = true where id = 1;", | ||
"Instructions": { | ||
"OperatorType": "Update", | ||
"Variant": "Unsharded", | ||
"Keyspace": { | ||
"Name": "main", | ||
"Sharded": false | ||
}, | ||
"TargetTabletType": "PRIMARY", | ||
"Query": "update ambiguous_ref_with_source set done = true where id = 1", | ||
"Table": "ambiguous_ref_with_source" | ||
}, | ||
"TablesUsed": [ | ||
"main.ambiguous_ref_with_source" | ||
] | ||
} | ||
} | ||
] |