You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is RowBinaryFormatWriter recommended for production use despite being marked experimental? #3431
api-diagnosticsArea: public API shape, error reporting, logging, metrics, tracingclientModule: the client (client-v2; with legacy: the v1 client)question
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.
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.
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.
api-diagnosticsArea: public API shape, error reporting, logging, metrics, tracingclientModule: the client (client-v2; with legacy: the v1 client)question
Activity
polyglotAI-bot commentedon Nov 26, 2026
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.
main: Not applicable — onmain(8480ca0), a program with no server connection wrote two rows to a file withRowBinaryFormatWriter; the bytes are validRowBinary.Analysis: On
main, the Javadoc ofRowBinaryFormatWriterstill says "Experimental API" (client-v2/src/main/java/com/clickhouse/client/api/data_formats/RowBinaryFormatWriter.java:27), and so do its interfaceClickHouseBinaryFormatWriterandRowBinaryFormatSerializer, the other public RowBinary serializer. The writer needs no server: its constructor takes anyOutputStreamand aTableSchema(RowBinaryFormatWriter.java:43), which an application can make fromClickHouseColumnobjects (client-v2/src/main/java/com/clickhouse/client/api/metadata/TableSchema.java:25).Automated triage by Polyglot AI. A maintainer makes the final decision.
chernser commentedon Nov 26, 2026
Good day, @Harry262530 !
This is only recommended way to write RowBinary.
However,