Open sashayakovtseva opened 2 years ago
Hi @sashayakovtseva, thanks for reporting the issue and providing the repo for reproducing the issue. Have you tried workaround like converting string to uuid in ClickHouse?
I have not. My use-case includes JOIN leverage (yes, unfortunately we need joins). So idea was to join by uuid as both clickhouse and cockroach source have columns of that type. As I understand correctly, I would have to call toUUID
every time I need to perform that join and this may lead to poor performance. Am I wrong?
I am trying try connect cockroachDB to ClickHouse via PostgreSQL jdbc driver. Cockroach claims to be PostgreSQL compatible, and indeed in go application we work with it using pgx driver. That means, PostgreSQL jdbc driver must work as well (see their docs).
However, it is impossible to query cockroach UUID as ClickHouse UUID type while it is possible to query cockroach UUID as ClickHouse String type (which is not something we want to do).
At first I thought this may be cockroach-specific issue and incompatibility, but the same error is reproducible with PostgreSQL.
The error itself:
Steps to reproduce are described in this repo. I've also tried custom mapping on jdbc side, but got same error. Steps to reproduce are here.