mirror of https://github.com/milvus-io/milvus.git
Cherry-pick from master pr: #31626 See also #31625 --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/31683/head
parent
d37e1fdd9f
commit
97c28edb04
|
@ -45,6 +45,9 @@ ParsePlaceholderGroup(const Plan* plan,
|
|||
Assert(plan->tag2field_.count(element.tag_));
|
||||
auto field_id = plan->tag2field_.at(element.tag_);
|
||||
auto& field_meta = plan->schema_[field_id];
|
||||
AssertInfo(static_cast<int>(field_meta.get_data_type()) ==
|
||||
static_cast<int>(info.type()),
|
||||
"vector type must be the same");
|
||||
element.num_of_queries_ = info.values_size();
|
||||
AssertInfo(element.num_of_queries_ > 0, "must have queries");
|
||||
if (info.type() ==
|
||||
|
|
|
@ -1398,7 +1398,10 @@ class TestCollectionSearch(TestcaseBase):
|
|||
def random_primary_key(self, request):
|
||||
yield request.param
|
||||
|
||||
@pytest.fixture(scope="function", params=["FLOAT_VECTOR", "FLOAT16_VECTOR", "BFLOAT16_VECTOR"])
|
||||
# skip fp16/bf16 for now, the case need to be modified
|
||||
# see also https://github.com/milvus-io/milvus/issues/31625
|
||||
# @pytest.fixture(scope="function", params=["FLOAT_VECTOR", "FLOAT16_VECTOR", "BFLOAT16_VECTOR"])
|
||||
@pytest.fixture(scope="function", params=["FLOAT_VECTOR"])
|
||||
def vector_data_type(self, request):
|
||||
yield request.param
|
||||
|
||||
|
@ -10456,7 +10459,10 @@ class TestCollectionHybridSearchValid(TestcaseBase):
|
|||
def random_primary_key(self, request):
|
||||
yield request.param
|
||||
|
||||
@pytest.fixture(scope="function", params=["FLOAT_VECTOR", "FLOAT16_VECTOR", "BFLOAT16_VECTOR"])
|
||||
# skip fp16/bf16 for now, the case need to be modified
|
||||
# see also https://github.com/milvus-io/milvus/issues/31625
|
||||
# @pytest.fixture(scope="function", params=["FLOAT_VECTOR", "FLOAT16_VECTOR", "BFLOAT16_VECTOR"])
|
||||
@pytest.fixture(scope="function", params=["FLOAT_VECTOR"])
|
||||
def vector_data_type(self, request):
|
||||
yield request.param
|
||||
|
||||
|
|
Loading…
Reference in New Issue