Skip to content

Conversation

roeap
Copy link
Contributor

@roeap roeap commented Aug 29, 2025

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?

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?

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