diff --git a/test/Collection.spec.ts b/test/Collection.spec.ts index d9c0bfac..0bce199e 100644 --- a/test/Collection.spec.ts +++ b/test/Collection.spec.ts @@ -54,7 +54,7 @@ describe(`Collection API`, () => { const res = await milvusClient.getPkFieldName({ collection_name: COLLECTION_NAME, }); - expect(res).toEqual('age'); + expect(res).toEqual('id'); }); it(`Create Collection with number dim Successful`, async () => { @@ -101,7 +101,7 @@ describe(`Collection API`, () => { collection_name: 'zxc', fields: [ { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true, @@ -126,7 +126,7 @@ describe(`Collection API`, () => { data_type: DataType.FloatVector, }, { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true, @@ -164,7 +164,7 @@ describe(`Collection API`, () => { }, }, { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true, @@ -334,7 +334,7 @@ describe(`Collection API`, () => { expect(typeof f.data_type).toEqual('string'); }); expect(res.schema.fields[0].name).toEqual(VECTOR_FIELD_NAME); - expect(res.schema.fields[1].name).toEqual('age'); + expect(res.schema.fields[1].name).toEqual('id'); }); it(`Load Collection Sync throw COLLECTION_NAME_IS_REQUIRED`, async () => { diff --git a/test/Data.spec.ts b/test/Data.spec.ts index 2cf53fa9..0fff9003 100644 --- a/test/Data.spec.ts +++ b/test/Data.spec.ts @@ -251,7 +251,7 @@ describe(`Data.API`, () => { const limit = 8; const res = await milvusClient.search({ collection_name: COLLECTION_NAME, - filter: 'height < 10000', + filter: 'int64 < 10000', vector: [1, 2, 3, 4], limit: limit, params: { nprobe: 1024 }, @@ -259,19 +259,19 @@ describe(`Data.API`, () => { expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); res.results.forEach(r => { - expect(Number(r.height)).toBeLessThan(10000); + expect(Number(r.int64)).toBeLessThan(10000); }); const res2 = await milvusClient.search({ collection_name: COLLECTION_NAME, - expr: 'height < 10000', + expr: 'int64 < 10000', vector: [1, 2, 3, 4], limit: limit, params: { nprobe: 1024 }, }); expect(res2.status.error_code).toEqual(ErrorCode.SUCCESS); res2.results.forEach(r => { - expect(Number(r.height)).toBeLessThan(10000); + expect(Number(r.int64)).toBeLessThan(10000); }); }); @@ -279,7 +279,7 @@ describe(`Data.API`, () => { const limit = 8; const res = await milvusClient.search({ collection_name: COLLECTION_NAME, - filter: 'height < 10000', + filter: 'int64 < 10000', vector: [1, 2, 3, 4], limit: limit, params: { nprobe: 1024, radius: 20, range_filter: 15 }, @@ -287,43 +287,49 @@ describe(`Data.API`, () => { expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); res.results.forEach(r => { - expect(Number(r.height)).toBeLessThan(10000); + expect(Number(r.int64)).toBeLessThan(10000); }); }); it(`Exec simple search with outputFields should success`, async () => { - const res = await milvusClient.search({ + const searchParams = { collection_name: COLLECTION_NAME, // partition_names: [], filter: '', vector: [1, 2, 3, 4], limit: 4, - output_fields: ['age', 'meta', VECTOR_FIELD_NAME], - }); + output_fields: ['id', 'json', VECTOR_FIELD_NAME], + }; + const res = await milvusClient.search(searchParams); expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); expect( res.results.forEach(r => { expect(typeof r[VECTOR_FIELD_NAME] !== 'undefined').toEqual(true); - expect(Object.keys(r).length).toEqual(5); // id, score, age, meta, vector + expect(Object.keys(r).length).toEqual( + searchParams.output_fields.length + 1 + ); // plus score }) ); }); it(`Exec simple search with JSON filter should success`, async () => { - const res = await milvusClient.search({ + const searchParams = { collection_name: COLLECTION_NAME, // partition_names: [], - filter: 'meta["number"] >= 0', + filter: 'json["number"] >= 0', vector: [1, 2, 3, 4], limit: 4, - output_fields: ['age', 'meta'], - }); + output_fields: ['id', 'json'], + }; + const res = await milvusClient.search(searchParams); expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); expect( res.results.forEach(r => { - expect(Object.keys(r).length).toEqual(4); // id, score, age, meta + expect(Object.keys(r).length).toEqual( + searchParams.output_fields.length + 1 + ); }) ); }); @@ -341,7 +347,7 @@ describe(`Data.API`, () => { params: JSON.stringify({ nprobe: 1024 }), round_decimal: 2, }, - output_fields: ['age'], + output_fields: ['id'], vector_type: DataType.FloatVector, }); @@ -361,7 +367,7 @@ describe(`Data.API`, () => { params: JSON.stringify({ nprobe: 1024 }), round_decimal: -1, }, - output_fields: ['age'], + output_fields: ['id'], vector_type: DataType.FloatVector, }); @@ -393,7 +399,7 @@ describe(`Data.API`, () => { try { await milvusClient.query({ collection_name: COLLECTION_NAME, - output_fields: ['age', VECTOR_FIELD_NAME], + output_fields: ['id', VECTOR_FIELD_NAME], offset: 0, limit: 3, }); @@ -406,7 +412,7 @@ describe(`Data.API`, () => { try { await milvusClient.get({ collection_name: COLLECTION_NAME, - output_fields: ['age', VECTOR_FIELD_NAME], + output_fields: ['id', VECTOR_FIELD_NAME], } as any); } catch (error) { expect(error.message).toEqual(ERROR_REASONS.IDS_REQUIRED); @@ -416,7 +422,7 @@ describe(`Data.API`, () => { it(`Get should success`, async () => { const get = await milvusClient.get({ collection_name: COLLECTION_NAME, - output_fields: ['age', VECTOR_FIELD_NAME], + output_fields: ['id', VECTOR_FIELD_NAME], ids: ['1', '2', '3'], }); expect(get.status.error_code).toEqual(ErrorCode.SUCCESS); @@ -425,8 +431,8 @@ describe(`Data.API`, () => { it(`Query with data limit and offset`, async () => { const res = await milvusClient.query({ collection_name: COLLECTION_NAME, - expr: 'age > 0', - output_fields: ['age', VECTOR_FIELD_NAME, 'default_value'], + expr: 'id > 0', + output_fields: ['id', VECTOR_FIELD_NAME, 'default_value'], offset: 0, limit: 3, }); @@ -448,11 +454,11 @@ describe(`Data.API`, () => { }); it(`Query with data limit only`, async () => { - const expr = 'age > 0'; + const expr = 'id > 0'; const res = await milvusClient.query({ collection_name: COLLECTION_NAME, expr: expr, - output_fields: ['age', 'meta', VECTOR_FIELD_NAME], + output_fields: ['id', 'json', VECTOR_FIELD_NAME], limit: 3, }); @@ -460,11 +466,11 @@ describe(`Data.API`, () => { }); it(`Query JSON data with float filter`, async () => { - const expr = 'meta["float"] >= 1.0'; + const expr = 'json["float"] >= 1.0'; const res = await milvusClient.query({ collection_name: COLLECTION_NAME, expr: expr, - output_fields: ['age', 'meta', VECTOR_FIELD_NAME], + output_fields: ['id', 'json', VECTOR_FIELD_NAME], offset: 0, limit: 3, }); @@ -472,11 +478,11 @@ describe(`Data.API`, () => { }); it(`Query JSON data with number filter`, async () => { - const expr = 'meta["number"] >= 1.0'; + const expr = 'json["number"] >= 1.0'; const res = await milvusClient.query({ collection_name: COLLECTION_NAME, expr: expr, - output_fields: ['age', 'meta', VECTOR_FIELD_NAME], + output_fields: ['id', 'json', VECTOR_FIELD_NAME], offset: 0, limit: 3, }); @@ -486,8 +492,8 @@ describe(`Data.API`, () => { it(`Query with data without limit and offset`, async () => { const res3 = await milvusClient.query({ collection_name: COLLECTION_NAME, - expr: 'age > 0', - output_fields: ['age', VECTOR_FIELD_NAME], + expr: 'id > 0', + output_fields: ['id', VECTOR_FIELD_NAME], }); expect(res3.status.error_code).toEqual(ErrorCode.SUCCESS); }); @@ -495,13 +501,13 @@ describe(`Data.API`, () => { it(`Query with empty data`, async () => { await milvusClient.deleteEntities({ collection_name: COLLECTION_NAME, - expr: 'age in [2,6]', + expr: 'id in [2,6]', }); const res = await milvusClient.query({ collection_name: COLLECTION_NAME, - expr: 'age in [2,4,6,8]', - output_fields: ['age', VECTOR_FIELD_NAME], + expr: 'id in [2,4,6,8]', + output_fields: ['id', VECTOR_FIELD_NAME], limit: 3, offset: 0, }); diff --git a/test/DynamicSchema.spec.ts b/test/DynamicSchema.spec.ts index 34228bf4..da5f73b6 100644 --- a/test/DynamicSchema.spec.ts +++ b/test/DynamicSchema.spec.ts @@ -95,11 +95,11 @@ describe(`Dynamic schema API`, () => { const query = await milvusClient.query({ collection_name: COLLECTION, limit: 10, - expr: 'age > 0', + expr: 'id > 0', output_fields: [ - 'meta', + 'json', 'vector', - 'age', + 'id', 'dynamic_int64', 'dynamic_varChar', ], @@ -119,7 +119,7 @@ describe(`Dynamic schema API`, () => { [1, 2, 3, 4], [1, 2, 3, 4], ], - expr: 'age > 0', + expr: 'id > 0', output_fields: ['*'], consistency_level: ConsistencyLevelEnum.Session, }); @@ -133,8 +133,8 @@ describe(`Dynamic schema API`, () => { collection_name: COLLECTION, limit: 10, vector: [1, 2, 3, 4], - expr: 'age > 0', - output_fields: ['meta', 'age', 'dynamic_int64', 'dynamic_varChar'], + expr: 'id > 0', + output_fields: ['json', 'id', 'dynamic_int64', 'dynamic_varChar'], }); expect(search2.status.error_code).toEqual(ErrorCode.SUCCESS); expect(search2.results.length).toEqual(10); diff --git a/test/Insert.spec.ts b/test/Insert.spec.ts index 3e16813f..296aff08 100644 --- a/test/Insert.spec.ts +++ b/test/Insert.spec.ts @@ -84,7 +84,7 @@ describe(`Insert API`, () => { }, }, { - name: 'age', + name: 'id', data_type: DataType.Int64, is_primary_key: true, description: '', @@ -183,7 +183,7 @@ describe(`Insert API`, () => { const dataset = [ { [VECTOR_FIELD_NAME]: [1, 2, 3, 4], - age: 1, + id: 1, bool: false, int: 1, double: 1.12, @@ -203,7 +203,7 @@ describe(`Insert API`, () => { const dataset = [ { [VECTOR_FIELD_NAME]: [1, 2, 3, 4], - age: 1, + id: 1, bool: false, int: 1, double: 1.12, @@ -241,7 +241,7 @@ describe(`Insert API`, () => { ], }, { - name: 'age', + name: 'id', data_type: 'Not exist', type_params: [], }, @@ -255,7 +255,7 @@ describe(`Insert API`, () => { const dataset = [ { [VECTOR_FIELD_NAME]: [1, 2, 3, 4], - age: 1, + id: 1, }, ]; const params: InsertReq = { @@ -277,7 +277,7 @@ describe(`Insert API`, () => { it(`Delete Data on float `, async () => { const res = await milvusClient.deleteEntities({ collection_name: COLLECTION_NAME, - expr: 'age in [1,2]', + expr: 'id in [1,2]', }); expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); }); @@ -308,9 +308,10 @@ describe(`Insert API`, () => { }); const query = await milvusClient.query({ collection_name: COLLECTION_NAME, - expr: 'age > 0', - output_fields: ['meta', 'age'], + expr: 'id > 0', + output_fields: ['json', 'id'], }); + expect(query.status.error_code).toEqual(ErrorCode.SUCCESS); }); it(`Insert data on float field expect missing field throw error`, async () => { @@ -322,7 +323,7 @@ describe(`Insert API`, () => { }, { data_type: DataType.Int16, - name: 'age', + name: 'id', }, ]; const fieldsData = generateInsertData(fields, 10); @@ -349,7 +350,7 @@ describe(`Insert API`, () => { }, { data_type: DataType.Int16, - name: 'age', + name: 'id', }, ]; const fieldsData = generateInsertData(fields, 10); @@ -376,7 +377,7 @@ describe(`Insert API`, () => { }, { data_type: DataType.Int16, - name: 'age', + name: 'id', }, ]; const fieldsData = generateInsertData(fields, 10); diff --git a/test/Orm.spec.ts b/test/Orm.spec.ts index c78472a7..cc8f4af6 100644 --- a/test/Orm.spec.ts +++ b/test/Orm.spec.ts @@ -165,8 +165,8 @@ describe(`ORM Client API`, () => { // query const queryRes = await collection.query({ - filter: 'height > 0', - output_fields: ['height', 'age'], + filter: 'int64 > 0', + output_fields: ['int64', 'id'], limit: 2, }); @@ -176,7 +176,7 @@ describe(`ORM Client API`, () => { // get const getRes = await collection.get({ ids: [1, 2, 3], - output_fields: ['height', 'age'], + output_fields: ['int64', 'id'], limit: 2, }); diff --git a/test/PartitionKey.spec.ts b/test/PartitionKey.spec.ts index 026a2284..dad937f1 100644 --- a/test/PartitionKey.spec.ts +++ b/test/PartitionKey.spec.ts @@ -84,7 +84,7 @@ describe(`Partition key API`, () => { numPartitions, fields: [ { - name: 'name2', + name: 'varChar2', description: 'VarChar field', data_type: DataType.VarChar, max_length: 128, @@ -125,7 +125,7 @@ describe(`Partition key API`, () => { partitionKeyEnabled: true, }); // enable partition key - createCollectionParams.partition_key_field = 'name'; + createCollectionParams.partition_key_field = 'varChar'; const res = await milvusClient.createCollection(createCollectionParams); expect(res.error_code).toEqual(ErrorCode.SUCCESS); }); @@ -139,7 +139,7 @@ describe(`Partition key API`, () => { partitionKeyEnabled: false, }); // enable partition key - createCollectionParams.partition_key_field = 'name'; + createCollectionParams.partition_key_field = 'varChar'; const res = await milvusClient.createCollection(createCollectionParams); expect(res.error_code).toEqual(ErrorCode.SUCCESS); @@ -150,7 +150,7 @@ describe(`Partition key API`, () => { expect( describe.schema.fields.filter( - f => f.name === 'name' && f.is_partition_key + f => f.name === 'varChar' && f.is_partition_key ).length ).toEqual(1); }); @@ -181,19 +181,19 @@ describe(`Partition key API`, () => { it(`Query Collection should be successful`, async () => { const res = await milvusClient.query({ collection_name: COLLECTION_DATA_NAME, - expr: 'name in ["apple"]', - output_fields: ['name'], + expr: 'varChar in ["apple"]', + output_fields: ['varChar'], }); - expect(res.data.some(data => data.name === 'apple')).toEqual(true); + expect(res.data.some(data => data.varChar === 'apple')).toEqual(true); }); it(`Query Collection with partition specified should get error`, async () => { const res = await milvusClient.query({ collection_name: COLLECTION_DATA_NAME, partition_names: ['p'], - expr: 'name in ["apple"]', - output_fields: ['name'], + expr: 'varChar in ["apple"]', + output_fields: ['varChar'], }); expect(res.status.error_code).toEqual(ErrorCode.UNEXPECTED_ERROR); @@ -203,11 +203,11 @@ describe(`Partition key API`, () => { const res = await milvusClient.search({ collection_name: COLLECTION_DATA_NAME, vector: [1, 2, 3, 4], - expr: 'name in ["apple"]', - output_fields: ['name'], + expr: 'varChar in ["apple"]', + output_fields: ['varChar'], }); - expect(res.results.some(data => data.name === 'apple')).toEqual(true); + expect(res.results.some(data => data.varChar === 'apple')).toEqual(true); }); it(`Search Collection with partition specified should get error`, async () => { @@ -215,8 +215,8 @@ describe(`Partition key API`, () => { collection_name: COLLECTION_DATA_NAME, partition_names: ['p'], vector: [1, 2, 3, 4], - expr: 'name in ["apple"]', - output_fields: ['name'], + expr: 'varChar in ["apple"]', + output_fields: ['varChar'], }); expect(search.status.error_code).toEqual(ErrorCode.UNEXPECTED_ERROR); diff --git a/test/Upsert.spec.ts b/test/Upsert.spec.ts index 9aebae21..bdbea336 100644 --- a/test/Upsert.spec.ts +++ b/test/Upsert.spec.ts @@ -84,7 +84,7 @@ describe(`Upsert API`, () => { }, }, { - name: 'age', + name: 'id', data_type: DataType.Int64, is_primary_key: true, description: '', @@ -184,7 +184,7 @@ describe(`Upsert API`, () => { const dataset = [ { [VECTOR_FIELD_NAME]: [1, 2, 3, 4], - age: 1, + id: 1, bool: false, int: 1, double: 1.12, @@ -204,7 +204,7 @@ describe(`Upsert API`, () => { const dataset = [ { [VECTOR_FIELD_NAME]: [1, 2, 3, 4], - age: 1, + id: 1, bool: false, int: 1, double: 1.12, @@ -242,7 +242,7 @@ describe(`Upsert API`, () => { ], }, { - name: 'age', + name: 'id', data_type: 'Not exist', type_params: [], }, @@ -256,7 +256,7 @@ describe(`Upsert API`, () => { const dataset = [ { [VECTOR_FIELD_NAME]: [1, 2, 3, 4], - age: 1, + id: 1, }, ]; const params: InsertReq = { @@ -278,7 +278,7 @@ describe(`Upsert API`, () => { it(`Delete Data on float `, async () => { const res = await milvusClient.deleteEntities({ collection_name: COLLECTION_NAME, - expr: 'age in [1,2]', + expr: 'id in [1,2]', }); expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); }); @@ -309,9 +309,10 @@ describe(`Upsert API`, () => { }); const query = await milvusClient.query({ collection_name: COLLECTION_NAME, - expr: 'age > 0', - output_fields: ['meta', 'age'], + expr: 'id > 0', + output_fields: ['json', 'id'], }); + expect(query.status.error_code).toEqual(ErrorCode.SUCCESS); }); it(`Upsert data on float field expect missing field throw error`, async () => { @@ -323,7 +324,7 @@ describe(`Upsert API`, () => { }, { data_type: DataType.Int16, - name: 'age', + name: 'id', }, ]; const fieldsData = generateInsertData(fields, 10); @@ -350,7 +351,7 @@ describe(`Upsert API`, () => { }, { data_type: DataType.Int16, - name: 'age', + name: 'id', }, ]; const fieldsData = generateInsertData(fields, 10); @@ -377,7 +378,7 @@ describe(`Upsert API`, () => { }, { data_type: DataType.Int16, - name: 'age', + name: 'id', }, ]; const fieldsData = generateInsertData(fields, 10); diff --git a/test/build/Collection.spec.ts b/test/build/Collection.spec.ts index 65993341..034de90e 100644 --- a/test/build/Collection.spec.ts +++ b/test/build/Collection.spec.ts @@ -51,7 +51,7 @@ describe('Collection Api', () => { collection_name: 'zxc', fields: [ { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true, @@ -76,7 +76,7 @@ describe('Collection Api', () => { data_type: 'FloatVector', }, { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true, @@ -147,7 +147,7 @@ describe('Collection Api', () => { COLLECTION_NAME_PARAMS.fields.length ); expect(res.schema.fields[0].name).toEqual(VECTOR_FIELD_NAME); - expect(res.schema.fields[1].name).toEqual('age'); + expect(res.schema.fields[1].name).toEqual('id'); }); it(`Load Collection`, async () => { diff --git a/test/tools/bench.ts b/test/tools/bench.ts index 51ce0891..3329d64f 100644 --- a/test/tools/bench.ts +++ b/test/tools/bench.ts @@ -13,7 +13,7 @@ const COLLECTION_NAME = 'bench_milvus'; console.log('Node client is initialized.'); const fields = [ { - name: 'age', + name: 'id', description: 'ID field', data_type: DataType.Int64, is_primary_key: true, @@ -25,9 +25,9 @@ const COLLECTION_NAME = 'bench_milvus'; data_type: DataType.FloatVector, dim: 1024, }, - { name: 'height', description: 'int64 field', data_type: DataType.Int64 }, + { name: 'int64', description: 'int64 field', data_type: DataType.Int64 }, { - name: 'name', + name: 'varChar', description: 'VarChar field', data_type: DataType.VarChar, max_length: 128, @@ -71,7 +71,7 @@ const COLLECTION_NAME = 'bench_milvus'; const search = await milvusClient.search({ collection_name: COLLECTION_NAME, vector: vectorsData[i]['vector'], - output_fields: ['age', 'height', 'name'], + output_fields: ['id', 'int64', 'varChar'], limit: 5, }); console.timeEnd('Search time'); diff --git a/test/tools/index.ts b/test/tools/index.ts index e4739843..a40a44a6 100644 --- a/test/tools/index.ts +++ b/test/tools/index.ts @@ -83,16 +83,26 @@ export const genCollectionParams = (data: generateCollectionParameters) => { dim: Number(dim), }, { - name: 'age', + name: 'id', description: 'ID field', data_type: DataType.Int64, is_primary_key: true, autoID, }, { - name: 'height', + name: 'int64', description: 'int64 field', - data_type: 'Int64', // test string type + data_type: 'Int64', + }, + { + name: 'float', + description: 'Float field', + data_type: DataType.Float, + }, + { + name: 'bool', + description: 'bool field', + data_type: DataType.Bool, }, { name: 'default_value', @@ -101,14 +111,14 @@ export const genCollectionParams = (data: generateCollectionParameters) => { data_type: 'Int64', // test string type }, { - name: 'name', + name: 'varChar', description: 'VarChar field', data_type: DataType.VarChar, max_length: 128, is_partition_key: partitionKeyEnabled, }, { - name: 'meta', + name: 'json', description: 'JSON field', data_type: DataType.JSON, }, @@ -161,6 +171,7 @@ export const generateInsertData = (fields: FieldType[], count: number = 10) => { const isBool = data_type === DataType.Bool; const isVarChar = data_type === DataType.VarChar; const isJson = data_type === DataType.JSON; + const isFloat = data_type === DataType.Float; const isDefaultValue = typeof f.default_value !== 'undefined'; if (isDefaultValue) { @@ -172,6 +183,8 @@ export const generateInsertData = (fields: FieldType[], count: number = 10) => { ? [...Array(Number(dim))].map(() => Math.random()) // Generate an array of random numbers between 0 and 10 with length equal to the vector dimension : isBool // If the field is a boolean field ? count % 2 === 0 // Generate a random boolean value based on the current count + : isFloat + ? Math.random() : isJson // If the field is a boolean field ? Math.random() > 0.4 ? { diff --git a/test/utils/Format.spec.ts b/test/utils/Format.spec.ts index 0f9eb7a2..73d768a5 100644 --- a/test/utils/Format.spec.ts +++ b/test/utils/Format.spec.ts @@ -337,7 +337,7 @@ describe('utils/format', () => { { type_params: [], index_params: [], - name: 'age', + name: 'id', is_primary_key: true, description: '', data_type: 'Int64', diff --git a/test/utils/Test.spec.ts b/test/utils/Test.spec.ts index 6f926acb..3d4e1b5c 100644 --- a/test/utils/Test.spec.ts +++ b/test/utils/Test.spec.ts @@ -11,7 +11,7 @@ describe(`utils/test`, () => { dim: 10, }, { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true, @@ -32,7 +32,7 @@ describe(`utils/test`, () => { dim: 80, }, { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true, @@ -52,7 +52,7 @@ describe(`utils/test`, () => { data_type: DataType.Bool, }, { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true, @@ -73,7 +73,7 @@ describe(`utils/test`, () => { max_length: 10, }, { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true, @@ -94,7 +94,7 @@ describe(`utils/test`, () => { data_type: DataType.Int32, }, { - name: 'age', + name: 'id', description: '', data_type: DataType.Int64, is_primary_key: true,