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

Open Beginner friendly
#2,957 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
java
Domain
api

Research direction

Start in clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseFormat.java and inspect how output formats are represented and parsed. Reproduce the JDBC/DataGrip failure with a SELECT ... FORMAT Hash query, then verify that Hash is recognized without the No enum constant error and that the query can be sent to ClickHouse.

Written by the indexing model from the issue text.

Description

bug client-api-v2 jdbc-v2
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.

Dominant language
Java
Stars
1.6k
Forks
637
Avg merge
2d 12h
Merged PRs (30d)
28

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClickHouse/clickhouse-java

All issues in ClickHouse/clickhouse-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.