v.25.6New Feature
New type of MergeTree, CoalescingMergeTree -
A new type of MergeTree, CoalescingMergeTree - the engine takes the first non-Null value during background merges. This closes #78869. #79344 (scanhex12).Why it matters
This feature addresses the need to efficiently handle columns with nullable data by merging and coalescing multiple rows into a single representative row, taking the first non-Null value. It simplifies data consolidation and improves query accuracy on datasets where null values are common.How to use it
Create a table using theCoalescingMergeTree engine in place of other MergeTree variants. The engine automatically coalesces nullable columns during background merges without additional configuration. For example:CREATE TABLE example_table (
id UInt64,
value Nullable(String),
date Date
) ENGINE = CoalescingMergeTree(date, (id), 8192);