clickhouse4j icon indicating copy to clipboard operation
clickhouse4j copied to clipboard

unable to catch any exception that occurs during copyFromDB call

Open ithinkcode opened this issue 1 year ago • 1 comments

Strange issue. I am using the copyFromDB method successfully but when an exception occurs - maybe due to wrong query or any other ch side error I am unable to "catch" the actual exception in a regular try catch block.

As per the logs this is the exception type

ERROR Error on sendStreamSQL() cc.blynk.clickhouse.except.ClickHouseUnknownException: ClickHouse exception

However if I try to catch that exception in a try catch it never gets caught !

ithinkcode avatar Jun 29 '23 07:06 ithinkcode

Was an issue in the clickhouse4j code where the exception returned from the clickhouse servers were getting suppressed instead of the getting pushed out.

ithinkcode avatar Jul 03 '23 16:07 ithinkcode