v.23.2New Feature
Add 'final' setting to apply FINAL modifier to all tables
Add settingfinalto implicitly apply theFINALmodifier to every table. #40945 (Arthur Passos).
Why it matters
This feature allows users to automatically ensure that all queries on tables consider the finalized state of data, effectively applying theFINAL modifier without needing to specify it manually in each query. This simplifies handling of MergeTree tables where the FINAL modifier is necessary to get deduplicated and fully merged data.How to use it
Enable the settingfinal in your session or user configuration to implicitly apply the FINAL modifier to all table queries. For example, use SET final = 1 before running your queries.