-
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.
* gen4: analyze simple update query Signed-off-by: Harshit Gangal <harshit@planetscale.com> * feat: addition of gen4UpdateStmtPlanner in the gen4_planner (wip) [ci skip] Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: support sqlparser.Statement in the semantic analyzer (wip) [ci skip] Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: support unsharded update queries in gen4 without subqueries (wip) [ci skip] Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: support sharded update queries in gen4 (wip) [ci skip] Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: support routed tables for update queries in gen4 (wip) [ci skip] Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: analyzer nows support subquery in update [ci skip] Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: rewrite routed tables everywhere, not just on the updated table Signed-off-by: Andres Taylor <andres@planetscale.com> * test: updated test expectations to match the new error message Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: add support for update in the logical operator structure Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: add update to the physical operator list Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: produce a fuller physical operator for updates Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: represent UPDATE as a physical operator Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: handle single sharded update queries Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: consider all vindexes for routing Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: support Update's MultiShardAutocommit and QueryTimeout in Gen4 Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: begin supporting subqueries in update Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: fix subquery support in gen4's update for sharded subquery Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: fix expected output for multicol vindex update Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * feat: merge subqueries with update with literal values Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: make it possible to merge operators other than SELECT Signed-off-by: Andres Taylor <andres@planetscale.com> * chore: small fixes Signed-off-by: Andres Taylor <andres@planetscale.com> * refactor: clean up file Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: add locking for the read part of updates with subqueries Signed-off-by: Andres Taylor <andres@planetscale.com> * refactor: clean up operator transformers Signed-off-by: Andres Taylor <andres@planetscale.com> * test: update tests now that update goes through semantic analysis Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: handle extracted subqueries when planning update evalengine expressions Signed-off-by: Andres Taylor <andres@planetscale.com> * test: turn off Gen4 vs V3 comparisons on everything except SELECT and UNION Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: allow explitly routed UPDATE queries Signed-off-by: Andres Taylor <andres@planetscale.com> * chore: update proto definitions Signed-off-by: Andres Taylor <andres@planetscale.com> * chore: addressed review comments Signed-off-by: Andres Taylor <andres@planetscale.com> * feat: fail on UPDATE with derived table with the proper error Signed-off-by: Andres Taylor <andres@planetscale.com> Co-authored-by: Florent Poinsard <florent.poinsard@outlook.fr> Co-authored-by: Andres Taylor <andres@planetscale.com>
- Loading branch information
1 parent
f328ae6
commit 085db75
Showing
44 changed files
with
2,138 additions
and
225 deletions.
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
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
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
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
Oops, something went wrong.