Skip to content

Use ZSTD(6) for Map columns in OTel schemas #3875

Backlog

Description

@Blargian

The default OTel table schemas use CODEC(ZSTD(3)) for Map(LowCardinality(String), String) attribute columns.

Since ClickHouse 26.3, String values nested in Map use with_size_stream serialization by default. With low ZSTD levels, the separate string-length stream can compress poorly and substantially increase disk use for common OTel metric workloads.

Please update the OTel schema seed files so Map columns, including nested Array(Map(...)) attribute columns, use CODEC(ZSTD(6)). Keep ZSTD(3) for non-Map columns unless there is a separate reason to change them.

This lets the ClickHouse documentation schema sync pick up the corrected defaults automatically.

Related: ClickHouse/ClickHouse#133624
Related: ClickHouse/ClickHouse#135752

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions