Skip to content

Commit

Permalink
fix: wrong num_entities used when mmap variable length data (#30848) (#…
Browse files Browse the repository at this point in the history
…31274)

#30728
pr: #30848

Signed-off-by: longjiquan <[email protected]>
  • Loading branch information
longjiquan committed Mar 14, 2024
1 parent 4e48a4d commit 50bfde9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/core/src/mmap/Column.h
Expand Up @@ -326,10 +326,10 @@ class VariableColumn : public ColumnBase {
indices_ = std::move(indices);
}

num_rows_ = indices_.size();

// for variable length memory mode only
if (data_ == nullptr) {
num_rows_ = indices_.size();

size_t total_size = size_;
size_ = 0;
Expand(total_size);
Expand Down

0 comments on commit 50bfde9

Please sign in to comment.