v.23.4Improvement

Support Enum in BSONEachRow and Optimize Map Key Types

Support Enum output/input in BSONEachRow, allow all map key types and avoid extra calculations on output. #48122 (Kruglov Pavel).
Support for Enum data types in BSONEachRow format, extended map key type compatibility, and optimization of output calculations in ClickHouse.

Why it matters

This feature enables ClickHouse to correctly serialize and deserialize Enum types when using the BSONEachRow format, broadens the range of supported map key types for better flexibility, and improves performance by eliminating unnecessary calculations during output serialization. This enhances data interchange with BSON consumers and improves efficiency.

How to use it

Use the BSONEachRow output and input format as usual. Enums will now be correctly handled automatically. You can also utilize maps with any key types supported by this update. No additional configuration is required.