mirror of https://github.com/milvus-io/milvus.git
				
				
				
			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 <sunbingyi1992@gmail.com>pull/36332/head
							parent
							
								
									526a672bae
								
							
						
					
					
						commit
						23b95aeba3
					
				| 
						 | 
					@ -483,8 +483,6 @@ InvertedIndexTantivy<T>::build_index_for_array(
 | 
				
			||||||
        auto n = data->get_num_rows();
 | 
					        auto n = data->get_num_rows();
 | 
				
			||||||
        auto array_column = static_cast<const Array*>(data->Data());
 | 
					        auto array_column = static_cast<const Array*>(data->Data());
 | 
				
			||||||
        for (int64_t i = 0; i < n; i++) {
 | 
					        for (int64_t i = 0; i < n; i++) {
 | 
				
			||||||
            assert(array_column[i].get_element_type() ==
 | 
					 | 
				
			||||||
                   static_cast<DataType>(schema_.element_type()));
 | 
					 | 
				
			||||||
            if (schema_.nullable() && !data->is_valid(i)) {
 | 
					            if (schema_.nullable() && !data->is_valid(i)) {
 | 
				
			||||||
                null_offset.push_back(i);
 | 
					                null_offset.push_back(i);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue