v.24.7Improvement

Implement Binary Encoding for ClickHouse Data Types

Implement binary encoding for ClickHouse data types and add its specification in docs. Use it in Dynamic binary serialization, allow to use it in RowBinaryWithNamesAndTypes and Native formats under settings. #65546 (Kruglov Pavel).
Introduces a binary encoding specification for ClickHouse data types, enabling more efficient and flexible serialization formats.

Why it matters

This feature provides a standardized binary encoding for ClickHouse data types, allowing improved performance and interoperability in data serialization. It solves the problem of inconsistent and less efficient serialization by unifying dynamic binary serialization and extending support to formats like RowBinaryWithNamesAndTypes and Native under configurable settings.

How to use it

Users can enable binary encoding by setting appropriate flags or parameters in serialization settings for formats such as RowBinaryWithNamesAndTypes and Native. The feature is integrated into the Dynamic binary serialization mechanism and can be configured via ClickHouse settings.