diff --git a/core/src/db/meta/MetaTypes.h b/core/src/db/meta/MetaTypes.h index c6a6b6ae87e6051a6963aeddc975bab75402db65..c973f3fdeae40f18984d8a5ee937ee558771080d 100644 --- a/core/src/db/meta/MetaTypes.h +++ b/core/src/db/meta/MetaTypes.h @@ -41,11 +41,6 @@ using DateT = int; const DateT EmptyDate = -1; using DatesT = std::vector; -struct DateRange { - DateT start_date_ = 0x1 << 32; - DateT end_date_ = 0; -}; - struct TableSchema { typedef enum { NORMAL, diff --git a/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp b/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp index 268b7fb9e329c62c6096e930579599b6a004e799..45ef51c62a7d1cd492d9f303614290f7c4bb2f2e 100644 --- a/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp +++ b/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp @@ -256,8 +256,14 @@ void IVFSQHybrid::UnsetQuantizer() { } -void +VectorIndexPtr IVFSQHybrid::LoadData(const knowhere::QuantizerPtr& q, const Config& conf) { + return nullptr; +} + +std::pair +IVFSQHybrid::CopyCpuToGpuWithQuantizer(const int64_t& device_id, const Config& config) { + KNOWHERE_THROW_MSG("Not yet implemented"); } IndexModelPtr diff --git a/core/src/server/grpc_impl/GrpcRequestTask.cpp b/core/src/server/grpc_impl/GrpcRequestTask.cpp index 1279cbac9f7bf48c7d55ebf56e9a46d36f5acd1f..3172e73786d923ec0ac04cc66d9ff63804883526 100644 --- a/core/src/server/grpc_impl/GrpcRequestTask.cpp +++ b/core/src/server/grpc_impl/GrpcRequestTask.cpp @@ -423,8 +423,8 @@ InsertTask::OnExecute() { return Status(SERVER_INVALID_ROWRECORD_ARRAY, "Row record array is empty"); } - if (!record_ids_->vector_id_array().empty()) { - if (record_ids_->vector_id_array().size() != insert_param_->row_record_array_size()) { + if (!insert_param_->row_id_array().empty()) { + if (insert_param_->row_id_array().size() != insert_param_->row_record_array_size()) { return Status(SERVER_ILLEGAL_VECTOR_ID, "Size of vector ids is not equal to row record array size"); } }