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

Add support for ClickHouse FORMAT on INSERT #1628

Merged
merged 8 commits into from
Jan 10, 2025

Conversation

bombsimon
Copy link
Contributor

Adds supports for the SETTINGS and FORMAT keywords used for ClickHouse when inserting data with other syntax than SQL. This can happen e.g. when using the ClickHouse CLI tool to pipe input from files or similar.

src/ast/dml.rs Outdated Show resolved Hide resolved
src/ast/query.rs Outdated Show resolved Hide resolved
src/ast/dml.rs Outdated Show resolved Hide resolved
tests/sqlparser_clickhouse.rs Outdated Show resolved Hide resolved
src/keywords.rs Outdated Show resolved Hide resolved
src/parser/mod.rs Outdated Show resolved Hide resolved
@bombsimon bombsimon requested a review from iffyio January 10, 2025 08:21
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

Thanks @bombsimon! looks good to me overall, left some minor comments

src/parser/mod.rs Outdated Show resolved Hide resolved
src/parser/mod.rs Outdated Show resolved Hide resolved
src/parser/mod.rs Outdated Show resolved Hide resolved
@bombsimon bombsimon requested a review from iffyio January 10, 2025 17:09
@bombsimon
Copy link
Contributor Author

Sorry, I messed up my rebase and lost some commits and force pushed 🙈 But we'll squash on merge anyway so probably nothing to fix now.

Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @bombsimon!
cc @alamb

@iffyio iffyio merged commit 0c3b6c0 into apache:main Jan 10, 2025
9 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