Skip to content

Commit

Permalink
fix: [2.5] fix chunk cache madvise when sparse raw data is mmaped (#3…
Browse files Browse the repository at this point in the history
…9146)

instead of marking as not supported,
ChunkedSparseFloatColumn::DataByteSize can simply use the impl of super
class.
pr: #39145
issue: #39158

Signed-off-by: Buqian Zheng <[email protected]>
  • Loading branch information
zhengbuqian authored Jan 10, 2025
1 parent 6b127d4 commit a43720f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/core/src/mmap/ChunkedColumn.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,6 @@ class ChunkedSparseFloatColumn : public ChunkedColumnBase {
std::dynamic_pointer_cast<SparseFloatVectorChunk>(chunk)->Dim());
}

// This is used to advice mmap prefetch, we don't currently support mmap for
// sparse float vector thus not implemented for now.
size_t
DataByteSize() const override {
PanicInfo(ErrorCode::Unsupported,
"ByteSize not supported for sparse float column");
}

SpanBase
Span(int64_t chunk_id) const override {
PanicInfo(ErrorCode::Unsupported,
Expand All @@ -303,7 +295,6 @@ class ChunkedSparseFloatColumn : public ChunkedColumnBase {

private:
int64_t dim_ = 0;
std::vector<knowhere::sparse::SparseRow<float>> vec_;
};

template <typename T>
Expand Down

0 comments on commit a43720f

Please sign in to comment.