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

feat(clickhouse): add support for partition expression #3428

Merged

Conversation

GaliFFun
Copy link
Contributor

@GaliFFun GaliFFun commented May 8, 2024

ClickHouse partition expression syntax differs from the one used in base Parser, documentation reference: https://clickhouse.com/docs/en/sql-reference/statements/alter/partition#how-to-set-partition-expression

Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @GaliFFun! I've left a few comments, should be good to go after we address them.

sqlglot/dialects/clickhouse.py Show resolved Hide resolved
sqlglot/dialects/clickhouse.py Outdated Show resolved Hide resolved
sqlglot/dialects/clickhouse.py Outdated Show resolved Hide resolved
sqlglot/dialects/clickhouse.py Outdated Show resolved Hide resolved
sqlglot/expressions.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

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

Appreciate the quick turnaround here!

@georgesittas georgesittas merged commit b46c5b3 into tobymao:main May 8, 2024
5 checks passed
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