fix: use right idx for kvrow

This commit is contained in:
Cary Xu 2022-05-28 08:31:35 +08:00
parent 76c5d431e5
commit ff0ab5d7f3
1 changed files with 2 additions and 2 deletions

View File

@ -1191,9 +1191,9 @@ bool tdGetTpRowDataOfCol(STSRowIter *pIter, col_type_t colType, int32_t offset,
} }
static FORCE_INLINE int32_t compareKvRowColId(const void *key1, const void *key2) { static FORCE_INLINE int32_t compareKvRowColId(const void *key1, const void *key2) {
if (*(int16_t *)key1 > ((SColIdx *)key2)->colId) { if (*(col_id_t *)key1 > ((SKvRowIdx *)key2)->colId) {
return 1; return 1;
} else if (*(int16_t *)key1 < ((SColIdx *)key2)->colId) { } else if (*(col_id_t *)key1 < ((SKvRowIdx *)key2)->colId) {
return -1; return -1;
} else { } else {
return 0; return 0;