This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 76fcda3a241 Partial support for connecting to embedded ClickHouse
`chDB` (#33786)
76fcda3a241 is described below
commit 76fcda3a2414efcab742f439778ef4347670d7a8
Author: Ling Hengqian <[email protected]>
AuthorDate: Mon Nov 25 15:05:00 2024 +0800
Partial support for connecting to embedded ClickHouse `chDB` (#33786)
---
RELEASE-NOTES.md | 1 +
.../infra/database/clickhouse/type/ClickHouseDatabaseType.java | 2 +-
.../infra/database/clickhouse/type/ClickHouseDatabaseTypeTest.java | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index 911bcde21bc..4d4a17579a1 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -25,6 +25,7 @@
1. DistSQL: Check inline expression when create sharding table rule with
inline sharding algorithm -
[#33735](https://github.com/apache/shardingsphere/pull/33735)
1. Infra: Support setting `hive_conf_list`, `hive_var_list` and
`sess_var_list` for jdbcURL when connecting to HiveServer2 -
[#33749](https://github.com/apache/shardingsphere/pull/33749)
1. Infra: Support connecting to HiveServer2 through database connection pools
other than HikariCP -
[#33762](https://github.com/apache/shardingsphere/pull/33762)
+1. Infra: Partial support for connecting to embedded ClickHouse `chDB` -
[#33786](https://github.com/apache/shardingsphere/pull/33786)
1. Proxy Native: Support connecting to HiveServer2 with ZooKeeper Service
Discovery enabled in GraalVM Native Image -
[#33768](https://github.com/apache/shardingsphere/pull/33768)
### Bug Fixes
diff --git
a/infra/database/type/clickhouse/src/main/java/org/apache/shardingsphere/infra/database/clickhouse/type/ClickHouseDatabaseType.java
b/infra/database/type/clickhouse/src/main/java/org/apache/shardingsphere/infra/database/clickhouse/type/ClickHouseDatabaseType.java
index 53510ae33e8..37143e1d610 100644
---
a/infra/database/type/clickhouse/src/main/java/org/apache/shardingsphere/infra/database/clickhouse/type/ClickHouseDatabaseType.java
+++
b/infra/database/type/clickhouse/src/main/java/org/apache/shardingsphere/infra/database/clickhouse/type/ClickHouseDatabaseType.java
@@ -29,7 +29,7 @@ public final class ClickHouseDatabaseType implements
DatabaseType {
@Override
public Collection<String> getJdbcUrlPrefixes() {
- return Arrays.asList("jdbc:ch:", "jdbc:clickhouse:");
+ return Arrays.asList("jdbc:ch:", "jdbc:clickhouse:", "jdbc:chdb");
}
@Override
diff --git
a/infra/database/type/clickhouse/src/test/java/org/apache/shardingsphere/infra/database/clickhouse/type/ClickHouseDatabaseTypeTest.java
b/infra/database/type/clickhouse/src/test/java/org/apache/shardingsphere/infra/database/clickhouse/type/ClickHouseDatabaseTypeTest.java
index 87e7dc7ed45..7d95f26c36b 100644
---
a/infra/database/type/clickhouse/src/test/java/org/apache/shardingsphere/infra/database/clickhouse/type/ClickHouseDatabaseTypeTest.java
+++
b/infra/database/type/clickhouse/src/test/java/org/apache/shardingsphere/infra/database/clickhouse/type/ClickHouseDatabaseTypeTest.java
@@ -30,6 +30,6 @@ class ClickHouseDatabaseTypeTest {
@Test
void assertGetJdbcUrlPrefixes() {
- assertThat(TypedSPILoader.getService(DatabaseType.class,
"ClickHouse").getJdbcUrlPrefixes(), is(Arrays.asList("jdbc:ch:",
"jdbc:clickhouse:")));
+ assertThat(TypedSPILoader.getService(DatabaseType.class,
"ClickHouse").getJdbcUrlPrefixes(), is(Arrays.asList("jdbc:ch:",
"jdbc:clickhouse:", "jdbc:chdb")));
}
}