Skip to content

Commit

Permalink
[opt](mow) opt mow lookup with sequence column (apache#38287) (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
cambyzju authored and caokaihua1 committed Aug 26, 2024
1 parent 35178d2 commit 71eed82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/olap/rowset/segment_v2/segment_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ Status SegmentIterator::_lookup_ordinal_from_pk_index(const RowCursor& key, bool

// The sequence column needs to be removed from primary key index when comparing key
bool has_seq_col = _segment->_tablet_schema->has_sequence_col();
if (has_seq_col) {
if (has_seq_col && !exact_match) {
size_t seq_col_length =
_segment->_tablet_schema->column(_segment->_tablet_schema->sequence_col_idx())
.length() +
Expand Down

0 comments on commit 71eed82

Please sign in to comment.