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)) {