mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix:GrowingDataGetter get the wrong string data (#38015)
issue: https://github.com/milvus-io/milvus/issues/37994 2.4 pr: https://github.com/milvus-io/milvus/pull/37995 Signed-off-by: cqy123456 <qianya.cheng@zilliz.com>
This commit is contained in:
parent
a514f839b2
commit
b14a0c4bf5
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user