zhannngchen commented on code in PR #22275: URL: https://github.com/apache/doris/pull/22275#discussion_r1275821370
########## be/src/olap/rowset/segment_v2/segment_writer.cpp: ########## @@ -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 = 0; pos < num_rows; pos++) { + for (size_t pos = row_pos; pos < num_rows; pos++) { Review Comment: should be `pos < row_pos + num_rows`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org