From 4f4e93b695fde8d158e2db499cf2fa2938d807f2 Mon Sep 17 00:00:00 2001 From: Nadav Har'El Date: Thu, 22 Jan 2026 09:44:54 +0200 Subject: [PATCH] cql: add "cql_row_ttl" cluster feature This patch adds a new cluster feature "CQL_ROW_TTL", for the new CQL per-row TTL feature. With this patch, this node reports supporting this feature, but the CQL per-row TTL feature can only be used once all the nodes in the cluster supports the feature. In other words, user requests to enable per-row TTL on a table should check this feature flag (on the whole cluster) before proceeding. This is needed because the implementation of the per-row-TTL expiration requires the cooperation of all nodes to participate in scanning for expired items, so the feature can't be trusted until all nodes participate in it. Signed-off-by: Nadav Har'El --- gms/feature_service.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/gms/feature_service.hh b/gms/feature_service.hh index 2f1242a1b0..de098448e4 100644 --- a/gms/feature_service.hh +++ b/gms/feature_service.hh @@ -81,6 +81,7 @@ public: gms::feature user_defined_functions { *this, "UDF"sv }; gms::feature alternator_streams { *this, "ALTERNATOR_STREAMS"sv }; gms::feature alternator_ttl { *this, "ALTERNATOR_TTL"sv }; + gms::feature cql_row_ttl { *this, "CQL_ROW_TTL"sv }; gms::feature range_scan_data_variant { *this, "RANGE_SCAN_DATA_VARIANT"sv }; gms::feature cdc_generations_v2 { *this, "CDC_GENERATIONS_V2"sv }; gms::feature user_defined_aggregates { *this, "UDA"sv };