ClickHouse / ClickHouse/clickhouse-java

[jdbc-v2] Handle query timeout in the middle of stream

Open
#3,077 2 comments 0 reactions 0 assignees View on GitHub
jdbc-v2
Dominant language
Java
Stars
1.6k
Forks
636
Avg merge
2d 23h
Merged PRs (30d)
29

Description

## Description

Query may have execution timeout limit on server. In this case exception will be just `SQLException` not a `SQLTimeoutException`.
JDBC do not make driver throw `SQLTimeoutException` in this case but it would be good to fix for consistency and better error handling.

Requires: https://github.com/ClickHouse/clickhouse-java/issues/2702

Contributor guide

Open the contributing guide

Research direction

Start with the JDBC-v2 streaming query timeout handling and review the prerequisite issue #2702 before locating the relevant code and tests. Done means a server execution timeout occurring during a stream is exposed as SQLTimeoutException rather than a generic SQLException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.