csun5285 commented on code in PR #66472:
URL: https://github.com/apache/doris/pull/66472#discussion_r3757449111


##########
be/src/storage/row_cursor.cpp:
##########
@@ -174,8 +174,7 @@ template <bool is_mow>
 void RowCursor::encode_key_with_padding(std::string* buf, size_t num_keys,
                                         bool padding_minimal) const {
     for (uint32_t cid = 0; cid < num_keys; cid++) {
-        auto* column = _schema->column(cid);
-        if (column == nullptr) {
+        if (cid >= _schema->num_read_columns()) {

Review Comment:
   之前是通过 column== nullptr 来判断这是最后一个key 列之后,现在通过 下标



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to