Skip to content

Commit

Permalink
finish default_null
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid committed Nov 5, 2024
1 parent 605fb8c commit d9b8d71
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion proto
30 changes: 11 additions & 19 deletions test/grpc/Data.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { timeoutTest } from '../tools';

const milvusClient = new MilvusClient({
address: IP,
logLevel: 'debug',
logLevel: 'info',
});
const COLLECTION_NAME = GENERATE_NAME();
const VARCHAR_ID_COLLECTION_NAME = GENERATE_NAME();
Expand Down Expand Up @@ -120,15 +120,13 @@ describe(`Data.API`, () => {
};
const res = await milvusClient.search(searchParams);

console.log('xxx2', res);

// await milvusClient.dropCollection({
// collection_name: COLLECTION_NAME,
// });
// await milvusClient.dropCollection({
// collection_name: VARCHAR_ID_COLLECTION_NAME,
// });
// await milvusClient.dropDatabase(dbParam);
await milvusClient.dropCollection({
collection_name: COLLECTION_NAME,
});
await milvusClient.dropCollection({
collection_name: VARCHAR_ID_COLLECTION_NAME,
});
await milvusClient.dropDatabase(dbParam);
});

it(`it should insert successfully`, async () => {
Expand Down Expand Up @@ -258,11 +256,9 @@ describe(`Data.API`, () => {
});

// find varchar2 field
const varChar2Field = describe.schema.fields.find(
f => f.name === 'varChar2'
)

console.dir(varChar2Field, { depth: null });
describe.schema.fields.find(f => f.name === 'varChar2');

// console.dir(varChar2Field, { depth: null });

const searchWithData = await milvusClient.search({
collection_name: COLLECTION_NAME,
Expand All @@ -272,8 +268,6 @@ describe(`Data.API`, () => {
group_by_field: 'varChar2',
});

console.log('searchWithData', searchWithData);

expect(searchWithData.status.error_code).toEqual(ErrorCode.SUCCESS);

const searchWithData2 = await milvusClient.search({
Expand Down Expand Up @@ -415,8 +409,6 @@ describe(`Data.API`, () => {
};
const res = await milvusClient.search(searchParams);

console.log('xxx', res);

expect(res.status.error_code).toEqual(ErrorCode.SUCCESS);
expect(
res.results.forEach(r => {
Expand Down

0 comments on commit d9b8d71

Please sign in to comment.