Skip to content

Commit

Permalink
fix offset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuzu CI committed Mar 11, 2024
1 parent eeaf1b5 commit 873db30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/storage/store/var_list_column_chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class VarListColumnChunk : public ColumnChunk {
void finalize() final;

inline common::offset_t getListStartOffset(common::offset_t offset) const {
if (numValues == 0)
return 0;
KU_ASSERT(offset < numValues);
return getListEndOffset(offset) - getListLen(offset);
}
Expand Down

0 comments on commit 873db30

Please sign in to comment.