Skip to content

Commit

Permalink
fix:[2.4]GrowingDataGetter get the wrong string data
Browse files Browse the repository at this point in the history
Signed-off-by: cqy123456 <qianya.cheng@zilliz.com>
  • Loading branch information
cqy123456 committed Nov 26, 2024
1 parent cb65423 commit 456e0ce
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ class GrowingDataGetter : public DataGetter<T> {

T
Get(int64_t idx) const {
return growing_raw_data_->operator[](idx);
if constexpr (std::is_same_v<std::string, T>) {
return T(growing_raw_data_->view_element(idx));
} else {
return growing_raw_data_->operator[](idx);
}
}
};

Expand Down

0 comments on commit 456e0ce

Please sign in to comment.