ClickHouse / ClickHouse/clickhouse-java
[jdbc-v2] DatabaseMetadata fails if server has a new type
Open
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
Assessment
This issue has not been assessed yet.