mirror of https://github.com/milvus-io/milvus.git
fix: Fix offset out of range for creating Trie index (#35553)
issue: #35550 Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>pull/35688/head
parent
f2b83d316b
commit
615a653988
|
@ -99,7 +99,7 @@ StringIndexMarisa::BuildWithFieldData(
|
|||
for (const auto& data : field_datas) {
|
||||
auto slice_num = data->get_num_rows();
|
||||
for (int64_t i = 0; i < slice_num; ++i) {
|
||||
if (data->is_valid(offset)) {
|
||||
if (data->is_valid(i)) {
|
||||
auto str_id =
|
||||
lookup(*static_cast<const std::string*>(data->RawValue(i)));
|
||||
AssertInfo(valid_str_id(str_id), "invalid marisa key");
|
||||
|
|
Loading…
Reference in New Issue