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

UPDATE statement #3325

Open
5 of 8 tasks
findepi opened this issue Apr 3, 2020 · 4 comments
Open
5 of 8 tasks

UPDATE statement #3325

findepi opened this issue Apr 3, 2020 · 4 comments
Labels
enhancement New feature or request roadmap Top level issues for major efforts in the project

Comments

@findepi findepi added enhancement New feature or request roadmap Top level issues for major efforts in the project labels Apr 3, 2020
@djsstarburst
Copy link
Member

djsstarburst commented Nov 6, 2020

PR #5861 implements SQL UPDATE in the Presto engine, and updates the Hive connector to support SQL UPDATE for Hive ACID tables. The PR contains a new Developer documentation page explaining in detail the API and theory of operation for UPDATE: 0966644#diff-b842ca279826a809534f2970ae7bf07fab1e8727bc4866fddb48b8c3ced809eaR1

@djsstarburst
Copy link
Member

#5861 has been merged. However, I'm unable to edit this issue to check it off.

@LexxaRRioo
Copy link

LexxaRRioo commented May 17, 2024

Hello! What do you think about UPDATE FROM section support? You can see examples here: https://www.postgresql.org/docs/current/sql-update.html

As far as I know, now it is impossible to update table A based on condition from table B even in WHERE section:

update table_val val
set to_delete = false
where not exists (
  select 1
  from table_map map
  where val.id = map.val_id
);

@djsstarburst
Copy link
Member

I don't have an opinion about this suggestion. @martint is the expert on these matters, and he would have to endorse the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request roadmap Top level issues for major efforts in the project
Development

No branches or pull requests

3 participants