From 06a6369e61ba530a4d917abc6c2bc6ab3439f36f Mon Sep 17 00:00:00 2001 From: "yuzhong.chen" Date: Thu, 22 Aug 2024 11:27:02 +0800 Subject: [PATCH] fix: global update use row ttl --- src/physical_plan/separate.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/physical_plan/separate.cpp b/src/physical_plan/separate.cpp index eff8c5fb..974e5d11 100644 --- a/src/physical_plan/separate.cpp +++ b/src/physical_plan/separate.cpp @@ -826,6 +826,9 @@ int Separate::separate_update(QueryContext* ctx) { if (ret < 0) { return -1; } + if (ctx->row_ttl_duration > 0) { + _row_ttl_duration = ctx->row_ttl_duration; + } int64_t main_table_id = update_node->table_id(); bool should_delete = false; if (!need_separate_plan(ctx, main_table_id)) {