Skip to content

Commit

Permalink
Merge branch 'main' of github.com:milvus-io/milvus-sdk-node
Browse files Browse the repository at this point in the history
  • Loading branch information
shanghaikid committed Dec 27, 2024
2 parents eebbbef + 29a16b7 commit 625e61b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/grpc/Upsert.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ describe(`Upsert API`, () => {
const vectorsData = query.data.map((item: any) => {
item.bool = true;
item.dynamic_upserted_int32 = 100;
item.$meta.dynamic_varChar = 'test';
item.dynamic_JSON = { a: 1 };
item.int32_array = null;
return item;
});

Expand Down Expand Up @@ -235,6 +238,16 @@ describe(`Upsert API`, () => {
(item: any) => item.$meta.dynamic_upserted_int32 === 100
)
).toBeTruthy();
expect(
query2.data.every((item: any) => item.$meta.dynamic_varChar === 'test')
).toBeTruthy();
expect(
query2.data.every((item: any) => item.$meta.dynamic_JSON.a === 1)
).toBeTruthy();
// check the int32_array field
expect(
query2.data.every((item: any) => item.int32_array === null)
).toBeTruthy();
});

it(`Upsert Data on different scalar fields`, async () => {
Expand Down

0 comments on commit 625e61b

Please sign in to comment.