Skip to content

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.

2 participants