ClickHouse / ClickHouse/clickhouse-java

Add missing `Hash` output format to `ClickHouseFormat` enum (JDBC/DataGrip throws "No enum constant ... Hash")

未关闭 适合新手
#2,957 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug client-api-v2 jdbc-v2
主要语言
Java
星标
1.6k
派生
637
平均合并
2 天 23 小时
30 天内合并 PR
29

描述

Use case

Running a SELECT ... FORMAT Hash query through the JDBC driver (e.g. from DataGrip) fails with:

No enum constant com.clickhouse.data.ClickHouseFormat.Hash

The Hash output format (https://clickhouse.com/docs/interfaces/formats/Hash) is supported by the ClickHouse server but is not present in theClickHouseFormat enum, so the driver throws before the query is ever sent.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseFormat.java 开始,检查输出格式是如何表示和解析的。使用 SELECT ... FORMAT Hash 查询复现 JDBC/DataGrip 失败,然后验证 Hash 在没有 No enum constant 错误的情况下能够被识别,并且查询可以发送到 ClickHouse。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
缺陷
难度
1/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
描述清楚
新手友好度
78/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。