v.23.11Improvement
Add Implicit Sign Column Constraint for CollapsingMergeTree Tables
Add a newMergeTreesettingadd_implicit_sign_column_constraint_for_collapsing_engine(disabled by default). When enabled, it adds an implicit CHECK constraint forCollapsingMergeTreetables that restricts the value of theSigncolumn to be only -1 or 1. #56701. #56986 (Kevin Mingtarja).
Why it matters
This feature enforces data integrity by restricting theSign column values in CollapsingMergeTree tables to valid entries (-1 or 1). It helps prevent invalid data that can lead to unexpected query results or engine misbehavior.How to use it
Enable the setting by specifyingadd_implicit_sign_column_constraint_for_collapsing_engine = 1 in the MergeTree table settings during table creation or by altering the table settings. By default, this setting is disabled.