This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 9e370278b66 branch-3.0: [Fix](SC) Prevent the values of 
`__DORIS_VERSION_COL__` be wrongly replaced by fake version when merging tmp 
rowset in sort SC #49193 (#49219)
9e370278b66 is described below

commit 9e370278b66259073347a9ae953a1603a1dbaf68
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Mar 19 10:53:35 2025 +0800

    branch-3.0: [Fix](SC) Prevent the values of `__DORIS_VERSION_COL__` be 
wrongly replaced by fake version when merging tmp rowset in sort SC #49193 
(#49219)
    
    Cherry-picked from #49193
    
    Co-authored-by: bobhan1 <bao...@selectdb.com>
---
 be/src/olap/schema_change.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/olap/schema_change.cpp b/be/src/olap/schema_change.cpp
index 762ee889c9f..ae285a94aff 100644
--- a/be/src/olap/schema_change.cpp
+++ b/be/src/olap/schema_change.cpp
@@ -568,7 +568,7 @@ Status 
VBaseSchemaChangeWithSorting::_inner_process(RowsetReaderSharedPtr rowset
         }
 
         auto rowset = DORIS_TRY(_internal_sorting(
-                blocks, Version(_temp_delta_versions.second, 
_temp_delta_versions.second),
+                blocks, Version(_temp_delta_versions.second, 
_temp_delta_versions.second + 1),
                 newest_write_timestamp, new_tablet, BETA_ROWSET, 
segments_overlap,
                 new_tablet_schema));
         _src_rowsets.push_back(std::move(rowset));
@@ -578,7 +578,7 @@ Status 
VBaseSchemaChangeWithSorting::_inner_process(RowsetReaderSharedPtr rowset
         blocks.clear();
 
         // increase temp version
-        _temp_delta_versions.second++;
+        _temp_delta_versions.second += 2;
         return Status::OK();
     };
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to