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
clientModule: the client (client-v2; with legacy: the v1 client)data-typesArea: type names, value encoding and decoding, row mapping, data formatsdocumentationImprovements or additions to documentation
Exact number of bytes should be sent when writing a FixedString. When string has less number then client add padding 0s . This behavior is not documented well.
Recommendation: Keep open — docs change needed
The client-v2 docs do not say that a FixedString(N) write pads a shorter value with zero bytes, and fails for a value longer than N bytes. The next step is a docs change in docs/clickhouse-docs/client.mdx.
Status on main: Reproduced on main — a RowBinaryFormatWriter insert of 'ab' into FixedString(5) stores 6162000000, and 'abcdefg' fails with IllegalArgumentException; main (8480ca001), ClickHouse 26.11.2.4.
Analysis:SerializerUtils.java:1134 (byte[]) and BinaryStreamUtils.java:1615 (String, as UTF-8) write the value and then zero bytes up to N, and reject a value longer than N bytes; N counts bytes, not characters. The type table (client.mdx:572) and its note on binary strings (client.mdx:600) give no write rule for FixedString; only the JDBC page documents the zero padding, and only on read (jdbc.mdx:361).
Automated triage by Polyglot AI. A maintainer makes the final decision.
clientModule: the client (client-v2; with legacy: the v1 client)data-typesArea: type names, value encoding and decoding, row mapping, data formatsdocumentationImprovements or additions to documentation
Activity
polyglotAI-bot commentedon Nov 27, 2026
Recommendation: Keep open — docs change needed
The client-v2 docs do not say that a
FixedString(N)write pads a shorter value with zero bytes, and fails for a value longer than N bytes. The next step is a docs change indocs/clickhouse-docs/client.mdx.main: Reproduced on main — aRowBinaryFormatWriterinsert of'ab'intoFixedString(5)stores6162000000, and'abcdefg'fails withIllegalArgumentException;main(8480ca001), ClickHouse 26.11.2.4.Analysis:
SerializerUtils.java:1134(byte[]) andBinaryStreamUtils.java:1615(String, as UTF-8) write the value and then zero bytes up to N, and reject a value longer than N bytes; N counts bytes, not characters. The type table (client.mdx:572) and its note on binary strings (client.mdx:600) give no write rule forFixedString; only the JDBC page documents the zero padding, and only on read (jdbc.mdx:361).Automated triage by Polyglot AI. A maintainer makes the final decision.