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

Support Snowflake Update-From-Select #1604

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

yuval-illumex
Copy link
Contributor

@yuval-illumex yuval-illumex commented Dec 16, 2024

The following query works in Snowflake:

UPDATE t1 FROM ( SELECT name, id FROM t1 GROUP BY id ) AS t2 SET name = t2.name WHERE t1.id = t2.id

Today the parser only supports update-set-from

src/parser/mod.rs Outdated Show resolved Hide resolved
src/parser/mod.rs Outdated Show resolved Hide resolved
src/parser/mod.rs Show resolved Hide resolved
tests/sqlparser_snowflake.rs Outdated Show resolved Hide resolved
@yuval-illumex
Copy link
Contributor Author

Thank you @iffyio for your feedback, I asked your opinion in one of the comments.

@yuval-illumex
Copy link
Contributor Author

@iffyio appreciate your feedback again 🙏 (Tests that are failing are not related to my PR):

https://github.com/apache/datafusion-sqlparser-rs/actions/runs/12455101228/job/34767107925

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

Successfully merging this pull request may close these issues.

2 participants