Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

add the *FORMAT JSON* clause to the query in order to fix the clickho…#985

Merged
dengc367 merged 1 commit into
sqlpad:masterfrom
dengc367:master
Mar 15, 2021
Merged

add the *FORMAT JSON* clause to the query in order to fix the clickho…#985
dengc367 merged 1 commit into
sqlpad:masterfrom
dengc367:master

Conversation

@dengc367

Copy link
Copy Markdown
Contributor

…use library bug.

fix: #984

@dengc367 dengc367 requested a review from rickbergfalk March 15, 2021 08:02
@dengc367 dengc367 self-assigned this Mar 15, 2021
@dengc367 dengc367 added the bug label Mar 15, 2021
@dengc367 dengc367 added this to the v6.x milestone Mar 15, 2021

@rickbergfalk rickbergfalk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I wish ClickHouse didn't require specifying format in the SQL query :/

@rickbergfalk

Copy link
Copy Markdown
Collaborator

@dengc367 Just thought of something - does this change work for non select statements like create/insert/update/delete?

@dengc367

Copy link
Copy Markdown
Contributor Author

Yes, I test successfully with non select statements like create/insert/alter/delete.

@dengc367 dengc367 merged commit 7ed04d8 into sqlpad:master Mar 15, 2021
@rickbergfalk

Copy link
Copy Markdown
Collaborator

@dengc367 might need to roll this back. This is breaking queries for me using ClickHouse 20.8. Which version of ClickHouse are you using?

@rickbergfalk

Copy link
Copy Markdown
Collaborator

It might just be with the ClickHouse test and the CREATE statements...

@rickbergfalk

Copy link
Copy Markdown
Collaborator

Looks like issue is with INSERT INTO statement. I think we need to do the same checks as done in driver

pavel-slepenkov added a commit to pavel-slepenkov/sqlpad that referenced this pull request Apr 19, 2021
* master: (174 commits)
  v6.6.0
  Update dependencies (sqlpad#1002)
  add the useHTTPS checkbox to fix https/http support in Presto connection (sqlpad#997)
  Add support authentication for presto, allow https for presto (sqlpad#995)
  Fix clickhouse queries beginning with comment (sqlpad#991)
  v6.5.0
  Fix ClickHouse FORMAT JSON application and LIMIT syntax parsing (sqlpad#989)
  Fix package-lock.json files
  Update dependencies (with npm 6) (sqlpad#987)
  Add query run history viewer (sqlpad#986)
  add the *FORMAT JSON* clause to the query in order to fix the clickhouse library bug. (sqlpad#985)
  v6.4.3
  Set base during development only (sqlpad#983)
  v6.4.2
  Fix chart download button (sqlpad#981)
  v6.4.1
  Fix history modal padding (sqlpad#980)
  v6.4.0
  Add cell expanded value modal (sqlpad#979)
  Render connection name when hiding connection dropdown (sqlpad#977)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clickhouse query error when using with () as A select SQL.

2 participants