Skip to content

1002 issue instead of 81 #755

Closed
Closed
@RonanMorgan

Description

Hi.

I receive a code 81 error shown in a stack trace (printed by ExceptionUtils.getStackTrace(exception)) :

ru.yandex.clickhouse.except.ClickHouseUnknownException: ClickHouse exception, code: 1002, host: host.net, port: 8123; Code: 81. DB::Exception: Database database_X doesn't exist.)

=> when I use exception.getErrorCode() it returned 1002
=> two "codes" are written in the stacktrace

here are the meaning of each code :
/~https://github.com/ClickHouse/clickhouse-jdbc/blob/094ed0b9d2dd8a18ae0c7b3f8f22c35e595822a6/clickhouse-jdbc/src/main/java/ru/yandex/clickhouse/except/ClickHouseErrorCode.java

I have upgraded my jdbc client to 0.3.2 and my version of clickhouse is 21.10.2.15 to be up to date but I have the same error.
Any idea why there are two codes in the stack trace ?

Greetings,
Ronan SY

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions