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: Fail all queries not handled well by gen4 #8359

Merged
merged 15 commits into from
Jun 24, 2021

Conversation

systay
Copy link
Collaborator

@systay systay commented Jun 21, 2021

Description

This PR will make sure that the gen4 planner does one of the following:

  • Produces a correct query (correct here means "does what the user wants", not necessarily the same thing that V3 did)
  • Produces a correct error (if the query is wrong, it should be detected and failed correctly)
  • Produce a Gen4NotSupported error. This makes it easy to fall back on V3 when gen4 does not yet support the query.

Related Issue(s)

#7280

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
@systay systay added Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature) labels Jun 21, 2021
systay and others added 13 commits June 22, 2021 09:07
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: GuptaManan100 <manan@planetscale.com>
Signed-off-by: GuptaManan100 <manan@planetscale.com>
@systay
Copy link
Collaborator Author

systay commented Jun 23, 2021

Not yet ready to be accepted, but feel free to review what is already there

@systay systay marked this pull request as ready for review June 24, 2021 05:15
"Name": "user",
"Sharded": true
},
"Query": "create view view_a as select sql_calc_found_rows * from music where user_id = 1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Gen4 handles sql_calc_found_rows? This query can be handled better.

@harshit-gangal harshit-gangal merged commit d2dbb6e into vitessio:main Jun 24, 2021
@harshit-gangal harshit-gangal deleted the gen4-fail-more branch June 24, 2021 07:37
@systay systay mentioned this pull request Jun 24, 2021
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants