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

Change GetSchema RPC to return CreateView instead of SelectStmt #12421

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

frouioui
Copy link
Member

Description

This PR changes GetSchema RPC to return CreateView instead of SelectStmt.

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
@frouioui frouioui added Type: Enhancement Logical improvement (somewhere between a bug and feature) Component: Query Serving labels Feb 22, 2023
@frouioui frouioui added the Forwardport to: main This will forward port the PR to the main branch label Feb 22, 2023
@frouioui frouioui changed the title Changed GetSchema RPC to return CreateView instead of SelectStmt Change GetSchema RPC to return CreateView instead of SelectStmt Feb 22, 2023
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Copy link
Member

@GuptaManan100 GuptaManan100 left a comment

Choose a reason for hiding this comment

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

I understand the changes, but just want to confirm why are we dropping the ViewStatement field. Is it just because we don't need it and is like a duplicated thing already part of the create view statement?

@harshit-gangal
Copy link
Member

I understand the changes, but just want to confirm why are we dropping the ViewStatement field. Is it just because we don't need it and is like a duplicated thing already part of the create view statement?

Yes, create view has more information than the select statement part of it. If we need additional information about the view, it is present in create view statement that can be used.

@harshit-gangal harshit-gangal merged commit 79014d3 into vitessio:release-16.0 Feb 23, 2023
@harshit-gangal harshit-gangal deleted the views-hg-fp branch February 23, 2023 02:33
harshit-gangal added a commit that referenced this pull request Feb 23, 2023
…ctStmt` (#12421) (#12441)

* Changed getSchemaRPC to return CreateView instead of SelectStmt

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* test: fix expectation

Signed-off-by: Harshit Gangal <harshit@planetscale.com>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Co-authored-by: Florent Poinsard <florent.poinsard@outlook.fr>
Co-authored-by: Harshit Gangal <harshit@planetscale.com>
@hmaurer hmaurer mentioned this pull request Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Query Serving Forwardport to: main This will forward port the PR to the main branch 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