forked from StarRocks/starrocks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] Re-Order operation on a table with seperated primary keys an…
…d sort keys may cause data corruption (StarRocks#27850) This pr fixes two bugs: 1. When we reorder rowsets, we will read a base chunk and reorder it as a new chunk. However, we don't clear the previous base chunk data after we finish reorder the base chunk. So we may write duplicate data into new rowset. 2. We still use primary key columns but not sort key columns to reorder the data chunk which may cause the data order does not meet the expectations. Signed-off-by: zhangqiang <[email protected]>
- Loading branch information
Showing
2 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters