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

Distributed queries response metadata #190

Merged
merged 1 commit into from
Jun 10, 2023

Conversation

luzrain
Copy link
Contributor

@luzrain luzrain commented Jun 7, 2023

Problem:
If we use distributed queries to write, as example

DROP TABLE IF EXISTS test_table ON CLUSTER test_cluster

the answer will be contains metadata in table format which can't be parsed in ClickHouseDB\Statement::init() and as a result throws "Can`t find meta" exception.
This pr fixed it by adding JSON format for queries started from CREATE, DROP or ALTER.
This does not affect on non-distributed queries as the response to these queries contains nothing for those type of queries.

@isublimity isublimity merged commit cefff6a into smi2:master Jun 10, 2023
@isublimity
Copy link
Contributor

Thx!

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.

None yet

2 participants