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

Fix write method format #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

den-kuz
Copy link

@den-kuz den-kuz commented Mar 14, 2024

This PR #190 brings breaking changes.

First of all, we can not execute CREATE, DROP, ALTER without ON CLUSTER. Cause CREATE TABLE blabla ... FORMAT JSON will produce syntax error exception
Second, this was very bad solution. 0 === strpos? What if query will have comment in start?

My PR fixes this issue, but breaks old code. But i think this is much better solution than the current one

@Lanatel
Copy link

Lanatel commented Jul 17, 2024

Hi, @isublimity can you check this PR?
There was a partial fix for this problem in PR #216, and queries without the ON CLUSTER statement are executed normally now. However, there are still errors when trying to execute CREATE, DROP, and ALTER queries with the ON CLUSTER statement, because not all of them support FORMAT. For example, it is not currently possible to execute CREATE USER, DROP USER, and similar queries.

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