clickhouse context deadline exceeded
#465
|
log: I try the sql use clickhouse-client, execution fast and success. any idea? |
Replies: 5 comments 18 replies
|
Hey @YangNianYi, It's the connection issue. Could you please share your connection string (with sensitive data redacted)? |
|
clickhouse://user:password@ip:port |
|
another error: ts=2024-03-12T10:37:16.257Z caller=klog.go:94 level=debug func=Infof msg="[target=clickhouse] Database handle successfully opened with 'clickhouse' driver" |
|
I forked the project, and use run in local ts=2024-03-12T10:46:22.116Z caller=klog.go:134 level=error func=Errorf msg="Error gathering metrics: [from Gatherer #1] [target=clickhouse,collector=clickhouse_collector,query=query_name] code: 62, message: Syntax error: failed at position 113 ('VALUES') (line 2, col 2): VALUES. Expected one of: token, Dot, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, Comma, WITH, HAVING, WINDOW, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query" |
|
The solution is to use go-clickhouse v2 with unprepared statement connection parameter (due to the issue in the driver) as stated here: |
The solution is to use go-clickhouse v2 with unprepared statement connection parameter (due to the issue in the driver) as stated here:
#465 (reply in thread)