ClickHouse / ClickHouse/clickhouse-java

[jdbc-v2] DatabaseMetadata fails if server has a new type

Open
#2,394 4 comments 2 reactions 0 assignees View on GitHub
area:jdbc-metadata bug jdbc-v2
Dominant language
Java
Stars
1.6k
Forks
636
Avg merge
2d 16h
Merged PRs (30d)
28

Description

## Description

Stacktrace:

```
java.lang.IllegalArgumentException: Unknown data type: Time64
at com.clickhouse.data.ClickHouseDataType.of(ClickHouseDataType.java:460)
at com.clickhouse.jdbc.metadata.DatabaseMetaDataTest.testGetTypeInfo(DatabaseMetaDataTest.java:234)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
```

This means that old client would not work with a new server even if type is never used.

### Expected Behaviour

Warning but no exception when client reads a new type from a server.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.