Skip to content
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

Gen4: Add UPDATE planning #9871

Merged
merged 35 commits into from
Apr 13, 2022
Merged

Gen4: Add UPDATE planning #9871

merged 35 commits into from
Apr 13, 2022

Commits on Apr 5, 2022

  1. gen4: analyze simple update query

    Signed-off-by: Harshit Gangal <harshit@planetscale.com>
    harshit-gangal authored and systay committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    c3d45ab View commit details
    Browse the repository at this point in the history
  2. feat: addition of gen4UpdateStmtPlanner in the gen4_planner (wip) [ci…

    … skip]
    
    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    0cd46fc View commit details
    Browse the repository at this point in the history
  3. feat: support sqlparser.Statement in the semantic analyzer (wip) [ci …

    …skip]
    
    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    977a1df View commit details
    Browse the repository at this point in the history
  4. feat: support unsharded update queries in gen4 without subqueries (wi…

    …p) [ci skip]
    
    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    3c40a1e View commit details
    Browse the repository at this point in the history
  5. feat: support sharded update queries in gen4 (wip) [ci skip]

    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    946085f View commit details
    Browse the repository at this point in the history
  6. feat: support routed tables for update queries in gen4 (wip) [ci skip]

    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    e956085 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2022

  1. feat: analyzer nows support subquery in update [ci skip]

    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    30215c3 View commit details
    Browse the repository at this point in the history
  2. feat: rewrite routed tables everywhere, not just on the updated table

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    13673f6 View commit details
    Browse the repository at this point in the history
  3. test: updated test expectations to match the new error message

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    c97f166 View commit details
    Browse the repository at this point in the history
  4. feat: add support for update in the logical operator structure

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    765f155 View commit details
    Browse the repository at this point in the history
  5. feat: add update to the physical operator list

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    29d8854 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. feat: produce a fuller physical operator for updates

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    148c3e3 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2022

  1. feat: represent UPDATE as a physical operator

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    4504582 View commit details
    Browse the repository at this point in the history
  2. feat: handle single sharded update queries

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    63b1db2 View commit details
    Browse the repository at this point in the history
  3. feat: consider all vindexes for routing

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    1bba4d6 View commit details
    Browse the repository at this point in the history
  4. feat: support Update's MultiShardAutocommit and QueryTimeout in Gen4

    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    50a81b9 View commit details
    Browse the repository at this point in the history
  5. feat: begin supporting subqueries in update

    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    84d9e78 View commit details
    Browse the repository at this point in the history
  6. feat: fix subquery support in gen4's update for sharded subquery

    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    a0213ec View commit details
    Browse the repository at this point in the history
  7. feat: fix expected output for multicol vindex update

    Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
    frouioui committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    cfad564 View commit details
    Browse the repository at this point in the history
  8. feat: merge subqueries with update with literal values

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    cd7b2ff View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2022

  1. feat: make it possible to merge operators other than SELECT

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    ee7d40a View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2022

  1. Merge branch main into gen4-update

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    9931b09 View commit details
    Browse the repository at this point in the history
  2. chore: small fixes

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    d80a4c7 View commit details
    Browse the repository at this point in the history
  3. refactor: clean up file

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    088bab6 View commit details
    Browse the repository at this point in the history
  4. feat: add locking for the read part of updates with subqueries

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    92c693f View commit details
    Browse the repository at this point in the history
  5. refactor: clean up operator transformers

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    66ce4b3 View commit details
    Browse the repository at this point in the history
  6. test: update tests now that update goes through semantic analysis

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    ce3d73c View commit details
    Browse the repository at this point in the history
  7. feat: handle extracted subqueries when planning update evalengine exp…

    …ressions
    
    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    8d863b7 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2022

  1. test: turn off Gen4 vs V3 comparisons on everything except SELECT and…

    … UNION
    
    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    ae8a27f View commit details
    Browse the repository at this point in the history
  2. Merge branch main into gen4-update

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    2c49426 View commit details
    Browse the repository at this point in the history
  3. feat: allow explitly routed UPDATE queries

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    d9ae23c View commit details
    Browse the repository at this point in the history
  4. chore: update proto definitions

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    4b42831 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. chore: addressed review comments

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    498ea25 View commit details
    Browse the repository at this point in the history
  2. feat: fail on UPDATE with derived table with the proper error

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    42e2f59 View commit details
    Browse the repository at this point in the history
  3. Merge branch main into gen4-update

    Signed-off-by: Andres Taylor <andres@planetscale.com>
    systay committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    9c7c8ed View commit details
    Browse the repository at this point in the history