question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ClickHouse syntax error on each query

See original GitHub issue

System information:

  • Operating system (distribution) and version: Windows 7
  • DBeaver version: 22.1.0.202206051253
  • Additional extensions: None

Connection specification:

  • Database name and version: ClickHouse 22.6.1.1985
  • Driver name: com.clickhouse.jdbc.ClickHouseDriver
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? : No

Describe the problem you’re observing:

Before each user query to clickhouse dbeaver sends an extra one which fails with log message from clickhouse. Seems like no effect to user queries.

Steps to reproduce, if exist:

Perform any query

Include any warning/errors/backtraces from the logs

ClickHouse error: 2022.06.27 00:34:11.822167 [ 52535 ] {be708644-dd61-4f03-a15f-2658ba4b6b6e} <Error> executeQuery: Code: 62. DB::Exception: Syntax error: failed at position 72 ('Client'): Client as DEFAULT_VALUE, Application name as DESCRIPTION union all select CustomHttpHeaders as NAME, toInt32(0) as MAX_LEN, as DEFAULT_VALUE, Custom HTTP heade. Expected one of: token, Comma, FROM, PREWHERE, WHERE, GROUP BY, WITH, HAVING, WINDOW, ORDER BY, LIMIT, OFFSET, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. (SYNTAX_ERROR) (version 22.6.1.1985 (official build)) (from 10.50.0.10:52522) (in query: select ApplicationName as NAME, toInt32(0) as MAX_LEN, ClickHouse Java Client as DEFAULT_VALUE, Application name as DESCRIPTION union all select CustomHttpHeaders as NAME, toInt32(0) as MAX_LEN, as DEFAULT_VALUE, Custom HTTP headers as DESCRIPTION union all select CustomHttpParameters as NAME, toInt32(0) as MAX_LEN, as DEFAULT_VALUE, Customer HTTP query parameters as DESCRIPTION), Stack trace (when copying this message, always include the lines below):

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
zhicwucommented, Jun 30, 2022

Apparently ClickHouse Java Client as DEFAULT_VALUE should be 'ClickHouse Java Client' as DEFAULT_VALUE - same issue exists in latest patch release. I’ll fix it in next release.

Update: actually it’s been fixed in ClickHouse/clickhouse-jdbc#930, so upgrading driver to 0.3.2-patch9 or above will work.

0reactions
uslsscommented, Oct 31, 2022

fixed in the scope of #17879

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clickhouse create table query throwing syntax error
I am executing the below-given query but it throwing an error. I am new to clickhouse can you please assist me with how...
Read more >
Troubleshooting | ClickHouse Docs
Query Processing​. If ClickHouse is not able to process the query, it sends an error description to the client. In the clickhouse-client you...
Read more >
Syntax | ClickHouse Docs
When input_format_values_interpret_expressions = 1 , ClickHouse first tries to parse values with the fast stream parser. If it fails, ClickHouse tries to use ......
Read more >
Column Manipulations | ClickHouse Docs
Adds a comment to the column. If the IF EXISTS clause is specified, the query won't return an error if the column does...
Read more >
JOIN Clause | ClickHouse Docs
Alternative syntax for CROSS JOIN is specifying multiple tables in FROM clause ... but they must refer either the left or the right...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found