clickhouse4j
clickhouse4j copied to clipboard
unable to catch any exception that occurs during copyFromDB call
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 !
Was an issue in the clickhouse4j code where the exception returned from the clickhouse servers were getting suppressed instead of the getting pushed out.