diff --git a/be/src/olap/compaction.cpp b/be/src/olap/compaction.cpp index fc86130113dd17..5fec6c8b7876f1 100644 --- a/be/src/olap/compaction.cpp +++ b/be/src/olap/compaction.cpp @@ -1506,6 +1506,7 @@ Status CloudCompactionMixin::construct_output_rowset_writer(RowsetWriterContext& ctx.write_file_cache = should_cache_compaction_output(); ctx.file_cache_ttl_sec = _tablet->ttl_seconds(); ctx.approximate_bytes_to_write = _input_rowsets_total_size; + ctx.tablet = _tablet; _output_rs_writer = DORIS_TRY(_tablet->create_rowset_writer(ctx, _is_vertical)); RETURN_IF_ERROR(