From 23b95aeba33397590d6ed8408f02257f748829bf Mon Sep 17 00:00:00 2001 From: Bingyi Sun Date: Wed, 18 Sep 2024 11:37:10 +0800 Subject: [PATCH] fix: remove element type check (#35828) https://github.com/milvus-io/milvus/issues/36275 Array's element type is not same with schema's. It is INT32 for INT16 and INT8 Signed-off-by: sunby --- internal/core/src/index/InvertedIndexTantivy.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/core/src/index/InvertedIndexTantivy.cpp b/internal/core/src/index/InvertedIndexTantivy.cpp index f6597a8646..1db1fa9d01 100644 --- a/internal/core/src/index/InvertedIndexTantivy.cpp +++ b/internal/core/src/index/InvertedIndexTantivy.cpp @@ -483,8 +483,6 @@ InvertedIndexTantivy::build_index_for_array( auto n = data->get_num_rows(); auto array_column = static_cast(data->Data()); for (int64_t i = 0; i < n; i++) { - assert(array_column[i].get_element_type() == - static_cast(schema_.element_type())); if (schema_.nullable() && !data->is_valid(i)) { null_offset.push_back(i); }