You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Options for connecting to ClickHouse from Java'
5
6
slug: /integrations/java
@@ -20,7 +21,7 @@ import CodeBlock from '@theme/CodeBlock';
20
21
21
22
Java client is a library implementing own API that abstracts details of network communications with ClickHouse server. Currently HTTP Interface is supported only. The library provide utilities to work with different ClickHouse formats and other related functions.
22
23
23
-
Java Client was developed far back in 2015. Its codebase became very hard to maintain, API is confusing, it is hard to optimize it further. So we have refactored it in 2024 into a new component `client-v2`. It has clear API, lighter codebase and more performance improvements, better ClickHouse formats support (RowBinary & Native mainly). JDBC will use this client in near feature.
24
+
Java Client was developed far back in 2015. Its codebase became very hard to maintain, API is confusing, it is hard to optimize it further. So we have refactored it in 2024 into a new component `client-v2`. It has clear API, lighter codebase and more performance improvements, better ClickHouse formats support (RowBinary & Native mainly). JDBC will use this client in near feature.
24
25
25
26
### Supported data types {#supported-data-types}
26
27
@@ -83,7 +84,7 @@ Java Client was developed far back in 2015. Its codebase became very hard to mai
83
84
- AggregatedFunction - :warning: does not support `SELECT * FROM table ...`
84
85
- Decimal - `SET output_format_decimal_trailing_zeros=1` in 21.9+ for consistency
85
86
- Enum - can be treated as both string and integer
86
-
- UInt64 - mapped to `long` in client-v1
87
+
- UInt64 - mapped to `long` in client-v1
87
88
:::
88
89
89
90
### Features {#features}
@@ -94,7 +95,8 @@ Table of features of the clients:
@@ -109,6 +111,7 @@ Table of features of the clients:
109
111
| Log Comment |✔ |✔ ||
110
112
| Session Roles |✔ |✔ ||
111
113
| SSL Client Authentication |✔ |✔ ||
114
+
| SNI Configuration |✔ |✗ ||
112
115
| Session timezone |✔ |✔ ||
113
116
114
117
JDBC Drive inherits same features as underlying client implementation. Other JDBC features are listed on its [page](/integrations/language-clients/java/jdbc).
@@ -122,7 +125,7 @@ JDBC Drive inherits same features as underlying client implementation. Other JDB
122
125
123
126
### Logging {#logging}
124
127
125
-
Our Java language client uses [SLF4J](https://www.slf4j.org/) for logging. You can use any SLF4J-compatible logging framework, such as `Logback` or `Log4j`.
128
+
Our Java language client uses [SLF4J](https://www.slf4j.org/) for logging. You can use any SLF4J-compatible logging framework, such as `Logback` or `Log4j`.
126
129
For example, if you are using Maven you could add the following dependency to your `pom.xml` file:
0 commit comments