Skip to content

Commit dd91e17

Browse files
authored
Merge pull request #1346 from zhicwu/main
Prepare for 0.4.6 release.
2 parents a068fc7 + 230f199 commit dd91e17

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Two new options(use_compilation & max_mapper_cache) reserved for future usage.
66

77
### Bug Fixes
8+
* Too many socket fds generated by Apache HttpClient.
89
* NoClassDefFoundError with clickhouse-apache-http-client-jdbc. [#1319](https://github.com/ClickHouse/clickhouse-java/issues/1319)
910
* Nested array in tuple array is incorrectly deserialized. [#1324](https://github.com/ClickHouse/clickhouse-java/issues/1324)
1011
* client certificate password exposure in exception. [#1331](https://github.com/ClickHouse/clickhouse-java/issues/1331)

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ Java libraries for connecting to ClickHouse and processing data in various forma
4444
| Transaction | Transaction | :white_check_mark: | supported since 0.3.2-patch11, use ClickHouse 22.7+ for native implicit transaction support |
4545
| | Savepoint | :x: | |
4646
| | XAConnection | :x: | |
47-
| Misc. | Centralized Configuration | :white_check_mark: | supported since 0.4.2, limited to JDBC driver and requires custom server setting `custom_jdbc_config` for all connected JDBC clients - [#1290](../../pull/1290) |
48-
| | INFILE & OUTFILE | :white_check_mark: | supported since 0.4.2, limited to JDBC driver and requires `localFile` option - [#1291](../../pull/1291) |
47+
| Misc. | Centralized Configuration | :white_check_mark: | supported since 0.4.2, limited to JDBC driver and requires custom server setting `custom_jdbc_config` for all connected JDBC clients - [#1290](../../pull/1290) |
48+
| | INFILE & OUTFILE | :white_check_mark: | supported since 0.4.2, limited to JDBC driver and requires `localFile` option - [#1291](../../pull/1291) |
4949
| | Implicit Type Conversion | :white_check_mark: | String/number to Date/Time/Timestamp and more |
50+
| | Object mapping | :white_check_mark: | supported since 0.4.6, slow and limited to simple data types |
5051

5152
## Usage
5253

clickhouse-http-client/src/main/java/com/clickhouse/client/http/ClickHouseHttpConnectionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static ClickHouseHttpConnection createConnection(ClickHouseNode server, C
2525
} catch (IOException e) {
2626
throw e;
2727
} catch (Throwable t) {
28-
log.warn("Error when creating http client %s, will use HTTP_URL_CONNECTION", provider.name(), t);
28+
log.warn("Error when creating http client %s, will use HTTP_URL_CONNECTION", provider, t);
2929
return new HttpUrlConnectionImpl(server, request, executor);
3030
}
3131
}

clickhouse-http-client/src/main/java/com/clickhouse/client/http/config/ClickHouseHttpOption.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public enum ClickHouseHttpOption implements ClickHouseOption {
3333
* Whether to enable keep-alive or not.
3434
*/
3535
KEEP_ALIVE("http_keep_alive", true, "Whether to use keep-alive or not"),
36+
/**
37+
* Max open connections apply with Apache HttpClient only.
38+
*/
39+
MAX_OPEN_CONNECTIONS("max_open_connections", 10, "Max open connections apply with Apache HttpClient only."),
3640
/**
3741
* Whether to receive information about the progress of a query in response
3842
* headers.
@@ -47,13 +51,7 @@ public enum ClickHouseHttpOption implements ClickHouseOption {
4751
/**
4852
* Web context.
4953
*/
50-
WEB_CONTEXT("web_context", "/", "Web context."),
51-
52-
/**
53-
* Max connections of ApacheHttpConnectionImpl
54-
*/
55-
MAX_OPEN_CONNECTIONS("max_open_connections", 10,
56-
"max open connections for a ClickHouseConnection");
54+
WEB_CONTEXT("web_context", "/", "Web context.");
5755

5856
private final String key;
5957
private final Serializable defaultValue;

clickhouse-jdbc/src/main/java/com/clickhouse/jdbc/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ final long read(Options options) throws ClickHouseException, SQLException {
510510
if (options.hasFile()) {
511511
try {
512512
response.getInputStream().setCopyToTarget(
513-
!"-".equals(options.file) ? new FileOutputStream(options.file, false)
513+
!"-".equals(options.file) ? new FileOutputStream(options.file, false) // NOSONAR
514514
: System.out); // NOSONAR
515515
} catch (IOException e) {
516516
throw ClickHouseException.of(e, server);

0 commit comments

Comments
 (0)