fix: remove element type check (#35828) (#36324)

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

related pr: #35828

Signed-off-by: sunby <sunbingyi1992@gmail.com>
This commit is contained in:
Bingyi Sun 2024-09-19 11:55:13 +08:00 committed by GitHub
parent e66beb7ace
commit e2f1beb543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -441,8 +441,6 @@ InvertedIndexTantivy<T>::build_index_for_array(
auto n = data->get_num_rows();
auto array_column = static_cast<const Array*>(data->Data());
for (int64_t i = 0; i < n; i++) {
assert(array_column[i].get_element_type() ==
static_cast<DataType>(schema_.element_type()));
wrapper_->template add_multi_data(
reinterpret_cast<const T*>(array_column[i].data()),
array_column[i].length());