Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add some DELTA keywords #2018

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

Open
roeap wants to merge 3 commits into apache:main
base: main
Choose a base branch
Loading
from roeap:feat/lite-keyword
Open

Conversation

Copy link
Contributor

@roeap roeap commented Aug 29, 2025
edited
Loading

The LITE and INVENTORY keywords are used in the delta VACUUM command, would be great if we could add it.

The SHALLOW keyword is used in shallow clones of delta tables.

@roeap roeap changed the title (削除) feat: add LITE keyword (削除ここまで) (追記) feat: add LITE and SHALLOW keywords (追記ここまで) Aug 29, 2025
@roeap roeap changed the title (削除) feat: add LITE and SHALLOW keywords (削除ここまで) (追記) feat: add some DELTA keywords (追記ここまで) Aug 29, 2025
@@ -491,6 +491,7 @@ define_keywords!(
INTERSECTION,
INTERVAL,
INTO,
INVENTORY,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add test cases to demonstrate the added functionality?

alamb reacted with heart emoji
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Certainly @iffyio. I had been looking through the code for existing tests, but to no avail. So unsure if I should add some cases to the tokenizer tests or in the parser module?

Or is there a more obvious place I am missing?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can probably extend this test to include new scenarios?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@iffyio - your hint got me to dive a bit deeper into the codebase. Unfortunately the Redhsift and Databricks VACUUM commands are quite different.

That said, would you accept a PR where I extend this a bit, add a custom statement parser option the databricks dialect and a VacuumDatabricks Statement variant?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yeah it should possible to support databricks' variant of the vacuum command. But we tend to not have dialect specific statements so that it'll likely need to be part of the existing Statement::Vacuum variant in this case, being extended to support the new options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@iffyio iffyio iffyio left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /