Use GaussDB JDBC v2.0-8.218.0 by default
diff --git a/library-udf/FEDERATED_QUERY.md b/library-udf/FEDERATED_QUERY.md index 5c4f85a..c6242e2 100644 --- a/library-udf/FEDERATED_QUERY.md +++ b/library-udf/FEDERATED_QUERY.md
@@ -86,7 +86,8 @@ Driver versions declared for compilation/testing are MySQL 9.3.0, PostgreSQL 42.7.7, ClickHouse 0.8.2 (`shaded-all`), openGauss 6.0.3-og, and GaussDB -506.0.0.b058-jdk7. Install the appropriate vendor driver and its runtime dependencies +v2.0-8.218.0 (`com.huaweicloud:gaussdbjdbc`), selected for GaussDB 25.1.32 / +V2.0-8.218.0. Install the appropriate vendor driver and its runtime dependencies for the database being queried. Do not install GaussDB's `gsjdbc4.jar` or the PostgreSQL-namespaced openGauss driver alongside PostgreSQL JDBC; these share class names. The adapters in this plugin deliberately use distinct vendor namespaces. @@ -167,6 +168,11 @@ ## Verified configuration +The end-to-end results below used the initial GaussDB driver +`com.huaweicloud.gaussdb:gaussdbjdbc:506.0.0.b058-jdk7`. The current default is +`com.huaweicloud:gaussdbjdbc:v2.0-8.218.0`; changing the default does not establish +verification against a commercial GaussDB server. + On 2026-09-18, IoTDB 2.0.11-SNAPSHOT based on master `87a6d198a9` was tested against a real openGauss 5.0.0 ARM64 instance, using a UTF-8 database in PG compatibility mode. All 14 end-to-end assertions passed: native SHA-256 login,
diff --git a/library-udf/FEDERATED_QUERY_zh.md b/library-udf/FEDERATED_QUERY_zh.md index 4feee0c..6af32f7 100644 --- a/library-udf/FEDERATED_QUERY_zh.md +++ b/library-udf/FEDERATED_QUERY_zh.md
@@ -54,7 +54,7 @@ library-udf/target/library-udf-2.0.11-SNAPSHOT-federated-jar-with-dependencies.jar ``` -这个 profile 打入插件、第三方运行依赖及五种 JDBC 驱动:MySQL 9.3.0、PostgreSQL 42.7.7、ClickHouse 0.8.2、openGauss 6.0.3-og、GaussDB 506.0.0.b058-jdk7。合并 JDBC ServiceLoader 配置,排除由 IoTDB 提供的 UDF API、TsFile 和 SLF4J API。 +这个 profile 打入插件、第三方运行依赖及五种 JDBC 驱动:MySQL 9.3.0、PostgreSQL 42.7.7、ClickHouse 0.8.2、openGauss 6.0.3-og、GaussDB v2.0-8.218.0。GaussDB 的 Maven 坐标为 `com.huaweicloud:gaussdbjdbc:v2.0-8.218.0`,对应本次目标环境 GaussDB 25.1.32 / V2.0-8.218.0。合并 JDBC ServiceLoader 配置,排除由 IoTDB 提供的 UDF API、TsFile 和 SLF4J API。 普通构建仍生成不含 JDBC 驱动的薄 JAR: @@ -390,6 +390,8 @@ ## 12. 本次文档验证结果 +本节端到端结果使用初版 GaussDB 驱动 `com.huaweicloud.gaussdb:gaussdbjdbc:506.0.0.b058-jdk7`。当前默认依赖已升级为 `com.huaweicloud:gaussdbjdbc:v2.0-8.218.0`;原有 openGauss 验证记录不能替代目标商用 GaussDB 实例的验证。 + 仅在 `ext/udf/` 放置一个 `federated-jar-with-dependencies.jar`,移出原薄插件及三个独立驱动 JAR 后,原有 14 项端到端断言全部通过。随后直接读取本目录提交的 SQL 文件执行,五个函数注册、九组成功查询、预期错误与错误恢复、PG 兼容查询合计 16 项检查通过。openGauss 的初始化与配置检查脚本也已在真实实例执行。 单 JAR 内容已检查:包含五种 JDBC 驱动,JDBC services 已合并,不含 IoTDB UDF API、TsFile、SLF4J API 副本;单元测试 6 项通过。测试完成后,IoTDB 与 openGauss/Lima 环境均停止,文件和数据保留在外置盘。
diff --git a/library-udf/pom.xml b/library-udf/pom.xml index ddb4a1b..3a8408a 100644 --- a/library-udf/pom.xml +++ b/library-udf/pom.xml
@@ -77,9 +77,9 @@ <optional>true</optional> </dependency> <dependency> - <groupId>com.huaweicloud.gaussdb</groupId> + <groupId>com.huaweicloud</groupId> <artifactId>gaussdbjdbc</artifactId> - <version>506.0.0.b058-jdk7</version> + <version>v2.0-8.218.0</version> <scope>${federated.jdbc.scope}</scope> <optional>true</optional> </dependency> @@ -137,7 +137,7 @@ <ignoredUnusedDeclaredDependency>org.postgresql:postgresql</ignoredUnusedDeclaredDependency> <ignoredUnusedDeclaredDependency>com.clickhouse:clickhouse-jdbc</ignoredUnusedDeclaredDependency> <ignoredUnusedDeclaredDependency>org.opengauss:opengauss-jdbc</ignoredUnusedDeclaredDependency> - <ignoredUnusedDeclaredDependency>com.huaweicloud.gaussdb:gaussdbjdbc</ignoredUnusedDeclaredDependency> + <ignoredUnusedDeclaredDependency>com.huaweicloud:gaussdbjdbc</ignoredUnusedDeclaredDependency> <!-- The shaded ClickHouse driver also contains SLF4J API classes. --> <ignoredUnusedDeclaredDependency>org.slf4j:slf4j-api</ignoredUnusedDeclaredDependency> </ignoredUnusedDeclaredDependencies>