-
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-20.0] Use proper keyspace when updating the query graph of a…
… reference DML (#17226) (#17257) Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Florent Poinsard <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com> Co-authored-by: Florent Poinsard <[email protected]> Co-authored-by: Florent Poinsard <[email protected]>
- Loading branch information
1 parent
495a44a
commit ae9cc19
Showing
4 changed files
with
40 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" | ||
] | ||
} | ||
} | ||
] |