This is an automated email from the ASF dual-hosted git repository.
cambyzju pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 715bcd13f1f [opt](mow) opt mow lookup with sequence column (#38287)
(#38406)
715bcd13f1f is described below
commit 715bcd13f1fdb59646942a016238cec31b7b1472
Author: camby <[email protected]>
AuthorDate: Tue Jul 30 09:46:09 2024 +0800
[opt](mow) opt mow lookup with sequence column (#38287) (#38406)
---
be/src/olap/rowset/segment_v2/segment_iterator.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
index 49616c63e5c..9040cbf3e27 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -1481,7 +1481,8 @@ Status
SegmentIterator::_lookup_ordinal_from_pk_index(const RowCursor& key, bool
// for mow with cluster key table, we should get key range from short key
index.
DCHECK(_segment->_tablet_schema->cluster_key_idxes().empty());
- if (has_seq_col) {
+ // if full key is exact_match, the primary key without sequence column
should also the same
+ if (has_seq_col && !exact_match) {
size_t seq_col_length =
_segment->_tablet_schema->column(_segment->_tablet_schema->sequence_col_idx())
.length() +
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]