Repository navigation
✨ feat(db): 新增 Apache Hive 数据源支持 - #1587
Merged
Merged
Conversation
Owner
|
感谢 @lska367 的贡献!🙏 这次和 dev 上已有的 Hive 实现撞车了,很抱歉。 Hive 驱动已经在 dev 的 d959e83 合入;这个 PR 从更早的 e76ac9d 起分支,独立实现的 HiveServer2 Thrift 驱动与现有版本重复,直接合并会出现两套 HiveDB,因此本次合并以现有驱动为准。 本 PR 中不重复的部分已经采纳并保留你的署名:
以上落在 8d3d80c,并保留 欢迎基于最新 dev 继续提增量,例如参数绑定、Hive 4 / V11 特性;如果愿意,也可以先开 issue 对一下方向,避免再次大面积重复。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
补充大数据离线数仓场景下的 Apache Hive(HiveServer2 Thrift)数据源连接、元数据浏览与 SQL 查询支持。
改动
optional-driver-agent接入,支持 Hive 3.x / 4.x、SASL 认证、TLS / SSH 隧道、查询取消、库表/分区元数据与 DDL 获取。hive.json数据源描述表、sql-hive能力契约,适配 SQL 导出的反引号标识符与转义规则。hive://与jdbc:hive2://(含分号参数)连接串解析及 Hive SQL 错误诊断。验证
go test ./internal/db -run TestHive与go test -tags gonavi_hive_driver ./internal/db ./cmd/optional-driver-agent/...通过。go test ./shared/i18n ./internal/datasource/...通过。hive.test.ts等相关 Vitest 测试通过。影响与回滚
仅新增
hive可选驱动与对应注册项,不影响既有数据源与连接配置;回滚本 PR 提交即可移除。