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

Feature Request: Updating can get the updated value #10760

Open
Tracked by #8604
Kean9527 opened this issue Jul 20, 2022 · 5 comments
Open
Tracked by #8604

Feature Request: Updating can get the updated value #10760

Kean9527 opened this issue Jul 20, 2022 · 5 comments

Comments

@Kean9527
Copy link

Feature Description

In many cases, we want to get the updated value about a column, mysql can use sql like this:
UPDATE account.t_user_bill SET diamonds = @value := diamonds + ? WHERE uid = ?
But now vitess just don't support this, Can we plan to it?

Use Case(s)

updating a column and get the updated value

@Kean9527 Kean9527 added Needs Triage This issue needs to be correctly labelled and triaged Type: Feature labels Jul 20, 2022
@frouioui frouioui added Component: Query Serving and removed Needs Triage This issue needs to be correctly labelled and triaged labels Jul 20, 2022
@frouioui
Copy link
Member

frouioui commented Jul 20, 2022

@GuptaManan100 is that something that we plan on supporting in the SQL parser?

@GuptaManan100
Copy link
Member

@Kean9527 @frouioui We don't support this currently, but we would like to. I'll add this to the issue tracking parsing support.

@AllMight2099
Copy link

Hey there!
I'd like to pick this issue up

@GuptaManan100
Copy link
Member

@AllMight2099 sure, go right ahead.

@GuptaManan100
Copy link
Member

GuptaManan100 commented May 11, 2023

Parsing support was added in #13032, but that itself isn't enough to support the query. The planner currently rejects this expression explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants