Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
hust-hhb committed Jul 28, 2023
1 parent b148a54 commit 599a797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/olap/rowset/segment_v2/segment_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ Status SegmentWriter::append_block(const vectorized::Block* block, size_t row_po
if (_tablet_schema->keys_type() == UNIQUE_KEYS && _opts.enable_unique_key_merge_on_write) {
// create primary indexes
std::string last_key;
for (size_t pos = row_pos; pos < row_pos + num_rows; pos++) {
for (size_t pos = 0; pos < num_rows; pos++) {
std::string key = _full_encode_keys(key_columns, pos);
if (_tablet_schema->has_sequence_col()) {
_encode_seq_column(seq_column, pos, &key);
Expand Down

0 comments on commit 599a797

Please sign in to comment.