From 903c6282d8858f886bc39855c3fa6b8447ef3474 Mon Sep 17 00:00:00 2001 From: Luwei <814383175@qq.com> Date: Thu, 25 Jul 2024 14:33:54 +0800 Subject: [PATCH] [fix](compaction) fix missing flush column during compaction --- be/src/olap/rowset/vertical_beta_rowset_writer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/be/src/olap/rowset/vertical_beta_rowset_writer.cpp b/be/src/olap/rowset/vertical_beta_rowset_writer.cpp index e0c1b65059fd05..863f0f597aa7c6 100644 --- a/be/src/olap/rowset/vertical_beta_rowset_writer.cpp +++ b/be/src/olap/rowset/vertical_beta_rowset_writer.cpp @@ -106,6 +106,7 @@ Status VerticalBetaRowsetWriter::add_columns(const vectorized::Block* block, if (num_rows_key_group == num_rows_written + to_write && _cur_writer_idx < _segment_writers.size() - 1) { + RETURN_IF_ERROR(_flush_columns(_segment_writers[_cur_writer_idx].get())); ++_cur_writer_idx; } }