Skip to content

Is RowBinaryFormatWriter recommended for production use despite being marked experimental? #3431

Backlog

Description

@Harry262530

I am considering using RowBinaryFormatWriter in a production environment to serialize rows in ClickHouse RowBinary format and write the resulting data to a file.

However, the API is currently marked as experimental. Before depending on it in production, I would like to understand its current status and future plans:

Is RowBinaryFormatWriter still considered experimental?
If so, which aspects of the API are unstable?
Is there a plan to stabilize this API? If yes, is there an expected release or timeline?
If it is not recommended for production use, what supported alternative should be used to serialize data in ClickHouse RowBinary format and write it to a file or another OutputStream?

My use case does not necessarily involve sending the data directly to a ClickHouse server. I need to serialize rows into a file using the same RowBinary encoding produced by RowBinaryFormatWriter.

Any guidance on API stability or recommended alternatives would be appreciated.

Activity

  1. polyglotAI-bot commented on Nov 26, 2026

    @polyglotAI-bot
    Collaborator

    Recommendation: Keep open — maintainer answer needed
    The stability status, the plans, and a timeline need a maintainer answer. The code answers whether the writer can write a file: see the Analysis.

    • Category: Question
    • Classification: impact: none · area: API & diagnostics (RowBinaryFormatWriter stability)
    • Status on main: Not applicable — on main (8480ca0), a program with no server connection wrote two rows to a file with RowBinaryFormatWriter; the bytes are valid RowBinary.
    • Breaking change: No
    • Duplicates / related: None found

    Analysis: On main, the Javadoc of RowBinaryFormatWriter still says "Experimental API" (client-v2/src/main/java/com/clickhouse/client/api/data_formats/RowBinaryFormatWriter.java:27), and so do its interface ClickHouseBinaryFormatWriter and RowBinaryFormatSerializer, the other public RowBinary serializer. The writer needs no server: its constructor takes any OutputStream and a TableSchema (RowBinaryFormatWriter.java:43), which an application can make from ClickHouseColumn objects (client-v2/src/main/java/com/clickhouse/client/api/metadata/TableSchema.java:25).

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

  2. added
    api-diagnostics
    client
    on Nov 26, 2026
  3. added this to the 0.12.0 milestone on Nov 26, 2026
  4. chernser commented on Nov 26, 2026

    @chernser
    Contributor

    Good day, @Harry262530 !

    Is RowBinaryFormatWriter still considered experimental?
    We planning to promote it to production ready in nearest release ( 0.12 or 0.13 in upcoming 2 months)

    If so, which aspects of the API are unstable?
    Is there a plan to stabilize this API? If yes, is there an expected release or timeline?
    There seems everything stable in API but I think we have a few issue to fix. Timeline - asap.

    If it is not recommended for production use, what supported alternative should be used to serialize data in ClickHouse RowBinary format and write it to a file or another OutputStream?

    This is only recommended way to write RowBinary.

    However,

    • this writer cannot be used to write to a file because this writer DO NOT write protocol version. Encoding is changing sometimes and on server we can understand version, so adapt. With files you need to write metadata describing version of the writer with which it was produced.
    • RowBinary formats family is not supper efficient and not very portable. In the best Native format should be used because it allows writing in parallel.
    • Using any other format suitable for externalization (meaning that data has container and can live without server) would be a right choice. Do not forget about portability.
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

    api-diagnosticsclientquestion

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions