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 more2 #8382

Merged
merged 12 commits into from
Jun 28, 2021
Merged

Gen4 fail more2 #8382

merged 12 commits into from
Jun 28, 2021

Conversation

systay
Copy link
Collaborator

@systay systay commented Jun 24, 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
Continuation of #8359

Checklist

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

frouioui and others added 7 commits June 24, 2021 10:06
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
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 24, 2021
systay and others added 4 commits June 24, 2021 11:57
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
… joins

Co-authored-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
case sqlparser.SelectExprs:
if isParentSelect(cursor) {
a.inProjection = append(a.inProjection, true)
fmt.Println(len(a.inProjection))
Copy link
Member

Choose a reason for hiding this comment

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

remove

@@ -141,20 +141,31 @@ func (p parenTables) tableID() semantics.TableSet {
}

// visit will traverse the route tables, going inside parenTables and visiting all routeTables
Copy link
Member

Choose a reason for hiding this comment

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

nit: change comment to match the function name

@frouioui frouioui marked this pull request as ready for review June 28, 2021 07:52
@systay systay merged commit 6dd97de into vitessio:main Jun 28, 2021
@systay systay deleted the gen4-fail-more2 branch June 28, 2021 08:00
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.

3 participants