Skip to content

[client-v2,jdbc-v2] FORMAT null support #2963

Open

Description

@chernser

Description

See #2715 (comment)

Activity

  1. added this to the 0.12.0 milestone on Jul 28, 2026
  2. added theissue type on Jul 28, 2026
  3. removed this from the 0.12.0 milestone on Oct 14, 2026
  4. polyglotAI-bot commented on Nov 27, 2026

    @polyglotAI-bot
    Collaborator

    Recommendation: Keep open — maintainer decision
    jdbc-v2 rejects a Null response, and on ClickHouse 26.8+ the default format header hides FORMAT Null from the server. A maintainer decides whether support covers only connections with format= (empty) or also the default format that DataGrip and DBeaver use.

    • Category: Feature
    • Classification: impact: none · area: Data types & formats (FORMAT Null)
    • Status on main: Not supported on main — a program ran SELECT number FROM numbers(1000000) FORMAT Null on 8480ca001. jdbc-v2 executeQuery() and execute() throw SQLException: Only RowBinaryWithNameAndTypes and JSONEachRow are supported for output format, but received format 'Null' on ClickHouse 26.3.66.4, and on 26.11.2.4 with format= (empty). On 26.11.2.4 with the default format, executeQuery() reads all 1,000,000 rows with no error. client-v2 query() gets the Null response when it sends no format header.
    • Breaking change: No — can be done without a break.
    • Duplicates / related: Related: [client-v2, jdbc-v2] A caller-supplied FORMAT clause is silently ignored on ClickHouse 26.8+ (X-ClickHouse-Format wins) #3070 (closed) — the default format header overrides a FORMAT clause on 26.8+.

    Analysis: StatementImpl.java:325-331 accepts only binary formats and JSONEachRow, and ClickHouseFormat.java:70 declares Null as not binary, so jdbc-v2 throws. client-v2 sends X-ClickHouse-Format: RowBinaryWithNamesAndTypes by default (HttpAPIClientHelper.java:954-963), and since 26.8 the server uses that header in place of the query's FORMAT clause (docs/features.md:18): the server then sends all rows.

    Automated triage by Polyglot AI. A maintainer makes the final decision.

  5. added
    data-types
    jdbc
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    data-typesenhancementjdbc

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions