Skip to content

Commit b76a2ee

Browse files
authored
Merge pull request #899 from zhicwu/grpc-patch
Add session_id connection property
2 parents 73d18ce + 753e67f commit b76a2ee

File tree

6 files changed

+110
-107
lines changed

6 files changed

+110
-107
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,32 @@ Note: in general, the new driver(v0.3.2) is a few times faster with less memory
2121

2222
## Features
2323

24-
| Category | Feature | Supported | Remark |
25-
| ------------- | ------------------------------------------------------------ | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
26-
| Protocol | [HTTP](https://clickhouse.com/docs/en/interfaces/http/) | :white_check_mark: | recommended, defaults to `java.net.HttpURLConnection` and can be changed to `java.net.http.HttpClient`(faster but less stable) |
27-
| | [gRPC](https://clickhouse.com/docs/en/interfaces/grpc/) | :white_check_mark: | still experimental, known to has [issue](https://github.com/ClickHouse/ClickHouse/issues/28671#issuecomment-1087049993) when using LZ4 compression |
28-
| | [TCP/Native](https://clickhouse.com/docs/en/interfaces/tcp/) | :x: | will be available in 0.3.3 |
29-
| Compatibility | Server < 20.7 | :x: | use 0.3.1-patch(or 0.2.6 if you're stuck with JDK 7) |
30-
| | Server >= 20.7 | :white_check_mark: | use 0.3.2 or above. All [active releases](https://github.com/ClickHouse/ClickHouse/pulls?q=is%3Aopen+is%3Apr+label%3Arelease) are supported. |
31-
| Data Type | AggregatedFunction | :x: | limited to `groupBitmap` |
32-
| | Array(\*) | :white_check_mark: | |
33-
| | Bool | :white_check_mark: | |
34-
| | Date\* | :white_check_mark: | |
35-
| | DateTime\* | :white_check_mark: | |
36-
| | Decimal\* | :white_check_mark: | `SET output_format_decimal_trailing_zeros=1` in 21.9+ for consistency |
37-
| | Enum\* | :white_check_mark: | can be treated as both string and integer |
38-
| | Geo Types | :white_check_mark: | Point, Ring, Polygon, and MultiPolygon |
39-
| | Int\*, UInt\* | :white_check_mark: | UInt64 is mapped to `long` |
40-
| | IPv\* | :white_check_mark: | |
41-
| | Map(\*) | :white_check_mark: | |
42-
| | Nested(\*) | :white_check_mark: | |
43-
| | Object('JSON') | :white_check_mark: | |
44-
| | SimpleAggregateFunction | :white_check_mark: | |
45-
| | \*String | :white_check_mark: | |
46-
| | Tuple(\*) | :white_check_mark: | |
47-
| | UUID | :white_check_mark: | |
48-
| Format | RowBinary | :white_check_mark: | `RowBinaryWithNamesAndTypes` for query and `RowBinary` for insertion |
49-
| | TabSeparated | :white_check_mark: | Does not support as many data types as RowBinary |
24+
| Category | Feature | Supported | Remark |
25+
| ------------- | ------------------------------------------------------------ | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
26+
| Protocol | [HTTP](https://clickhouse.com/docs/en/interfaces/http/) | :white_check_mark: | recommended, defaults to `java.net.HttpURLConnection` and can be changed to `java.net.http.HttpClient`(faster but less stable) |
27+
| | [gRPC](https://clickhouse.com/docs/en/interfaces/grpc/) | :white_check_mark: | still experimental, works with 22.3+, known to has [issue](https://github.com/ClickHouse/ClickHouse/issues/28671#issuecomment-1087049993) when using LZ4 compression |
28+
| | [TCP/Native](https://clickhouse.com/docs/en/interfaces/tcp/) | :x: | will be available in 0.3.3 |
29+
| Compatibility | Server < 20.7 | :x: | use 0.3.1-patch(or 0.2.6 if you're stuck with JDK 7) |
30+
| | Server >= 20.7 | :white_check_mark: | use 0.3.2 or above. All [active releases](https://github.com/ClickHouse/ClickHouse/pulls?q=is%3Aopen+is%3Apr+label%3Arelease) are supported. |
31+
| Data Type | AggregatedFunction | :x: | limited to `groupBitmap` |
32+
| | Array(\*) | :white_check_mark: | |
33+
| | Bool | :white_check_mark: | |
34+
| | Date\* | :white_check_mark: | |
35+
| | DateTime\* | :white_check_mark: | |
36+
| | Decimal\* | :white_check_mark: | `SET output_format_decimal_trailing_zeros=1` in 21.9+ for consistency |
37+
| | Enum\* | :white_check_mark: | can be treated as both string and integer |
38+
| | Geo Types | :white_check_mark: | Point, Ring, Polygon, and MultiPolygon |
39+
| | Int\*, UInt\* | :white_check_mark: | UInt64 is mapped to `long` |
40+
| | IPv\* | :white_check_mark: | |
41+
| | Map(\*) | :white_check_mark: | |
42+
| | Nested(\*) | :white_check_mark: | |
43+
| | Object('JSON') | :white_check_mark: | |
44+
| | SimpleAggregateFunction | :white_check_mark: | |
45+
| | \*String | :white_check_mark: | |
46+
| | Tuple(\*) | :white_check_mark: | |
47+
| | UUID | :white_check_mark: | |
48+
| Format | RowBinary | :white_check_mark: | `RowBinaryWithNamesAndTypes` for query and `RowBinary` for insertion |
49+
| | TabSeparated | :white_check_mark: | Does not support as many data types as RowBinary |
5050

5151
## Configuration
5252

@@ -228,7 +228,7 @@ In the case you prefer to test against an existing server, please follow instruc
228228
- add below two configuration files to the existing server and expose all ports for external access
229229
- [ports.xml](../../blob/master/clickhouse-client/src/test/resources/containers/clickhouse-server/config.d/ports.xml) - enable all ports
230230
- and [users.xml](../../blob/master/clickhouse-client/src/test/resources/containers/clickhouse-server/users.d/users.xml) - accounts used for integration test
231-
Note: you may need to change root element from `clickhouse` to `yandex` when testing old version of ClickHouse.
231+
Note: you may need to change root element from `clickhouse` to `yandex` when testing old version of ClickHouse.
232232
- put `test.properties` under either `~/.clickhouse` or `src/test/resources` of your project, with content like below:
233233
```properties
234234
clickhouseServer=x.x.x.x

0 commit comments

Comments
 (0)