mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 10:15:43 +00:00
test: fix struct array nullable field error expectation (#51073)
This PR updates the struct array invalid-case test expectation to match the current error message for nullable sub-fields inside a non-nullable struct. The affected parametrized cases are: - test_struct_array_with_nullable_field[clip_embedding1] - test_struct_array_with_nullable_field[scalar_field] This is a test-only change. --------- Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
@@ -4777,8 +4777,8 @@ class TestMilvusClientStructArrayInvalid(TestMilvusClientV2Base):
|
||||
)
|
||||
error = {
|
||||
ct.err_code: 1100,
|
||||
ct.err_msg: f"sub-field in non-nullable struct cannot be nullable individually, "
|
||||
f"set nullable on the struct instead: structName=clips, subFieldName={nullable_field}",
|
||||
ct.err_msg: f"Field '{nullable_field}' in struct 'clips' cannot be nullable individually, "
|
||||
f"set nullable on the struct instead",
|
||||
}
|
||||
self.create_collection(
|
||||
client,
|
||||
|
||||
Reference in New Issue
Block a user