Skip to content

Commit

Permalink
[branch-2.1] Picks "[Opt](delete) Skip newly inserted rows check in n…
Browse files Browse the repository at this point in the history
…on-strict mode partial update if the row's delete sign is marked #40322" (#40383)

picks #40322
  • Loading branch information
bobhan1 authored Sep 9, 2024
1 parent 9c9827b commit 44a7eff
Show file tree
Hide file tree
Showing 5 changed files with 532 additions and 115 deletions.
3 changes: 2 additions & 1 deletion be/src/olap/rowset/segment_v2/segment_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ Status SegmentWriter::append_block_with_partial_content(const vectorized::Block*
segment_pos);

} else {
if (!_opts.rowset_ctx->partial_update_info->can_insert_new_rows_in_partial_update) {
if (!_opts.rowset_ctx->partial_update_info->can_insert_new_rows_in_partial_update &&
!have_delete_sign) {
std::string error_column;
for (auto cid : _opts.rowset_ctx->partial_update_info->missing_cids) {
const TabletColumn& col = _tablet_schema->column(cid);
Expand Down
3 changes: 2 additions & 1 deletion be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ Status VerticalSegmentWriter::_append_block_with_partial_content(RowsInBlock& da
DeleteBitmap::TEMP_VERSION_COMMON},
segment_pos);
} else {
if (!_opts.rowset_ctx->partial_update_info->can_insert_new_rows_in_partial_update) {
if (!_opts.rowset_ctx->partial_update_info->can_insert_new_rows_in_partial_update &&
!have_delete_sign) {
std::string error_column;
for (auto cid : _opts.rowset_ctx->partial_update_info->missing_cids) {
const TabletColumn& col = _tablet_schema->column(cid);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1
2
3
3
7
Loading

0 comments on commit 44a7eff

Please sign in to comment.