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
Copy file name to clipboardExpand all lines: clickhouse-cli-client/README.md
+22-7
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,18 @@
1
1
# ClickHouse Command-line Client
2
2
3
-
This is a wrapper of ClickHouse native command-line client. In order to use it, please make sure 1) either the native command-line client or docker is installed; and 2) `clickhouse_cli_path` or `docker_cli_path` is configured properly.
3
+
This is a thin wrapper of ClickHouse native command-line client. It provides an alternative way to communicate with ClickHouse, which might be of use when you prefer:
4
4
5
-
Unlike `clickhouse-http-client`, this module is not designed for dealing with many queries in short period of time, because it uses sub-process(NOT thread) and file-based streaming. Having said that, it provides an alternative, usually faster,way to dump and load large data sets. Besides, due to its simplicity, it can be used as an example to demonstrate how to implement SPI defined in `clickhouse-client`.
5
+
- TCP/native protocol over HTTP or gRPC
6
+
- native CLI client instead of pure Java implementation
7
+
- an example of implementing SPI defined in `clickhouse-client` module
8
+
9
+
Either [clickhouse-client](https://clickhouse.com/docs/en/interfaces/cli/) or [docker](https://docs.docker.com/get-docker/) must be installed prior to use. And it's important to understand that this module uses sub-process(in addition to threads) and file-based streaming, meaning 1) it's not as fast as native CLI client or pure Java implementation, although it's close in the case of dumping and loading data; and 2) it's not suitable for scenarios like dealing with many queries in short period of time.
6
10
7
11
## Limitations and Known Issues
8
12
9
13
- Only `max_result_rows` and `result_overflow_mode` two settings are currently supported
10
14
- ClickHouseResponseSummary is always empty - see ClickHouse/ClickHouse#37241
11
-
- Session is not supported and query cannot be cancelled - see ClickHouse/ClickHouse#37308
15
+
- Session is not supported - see ClickHouse/ClickHouse#37308
12
16
13
17
## Maven Dependency
14
18
@@ -27,7 +31,7 @@ Unlike `clickhouse-http-client`, this module is not designed for dealing with ma
27
31
// make sure 'clickhouse-client' or 'docker' is in PATH before you start the program
28
32
// alternatively, configure CLI path in either Java system property or environment variable, for examples:
0 commit comments