@zilliz/milvus2-sdk-node 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,8 @@ option java_package = "io.milvus.grpc";
8
8
  option java_outer_classname = "CommonProto";
9
9
  option java_generate_equals_and_hash = true;
10
10
 
11
+ option csharp_namespace = "IO.Milvus.Grpc";
12
+
11
13
  import "google/protobuf/descriptor.proto";
12
14
 
13
15
  enum ErrorCode {
@@ -61,6 +63,11 @@ enum ErrorCode {
61
63
  ForceDeny = 48;
62
64
  RateLimit = 49;
63
65
  NodeIDNotMatch = 50;
66
+ UpsertAutoIDTrue = 51;
67
+ InsufficientMemoryToLoad = 52;
68
+ MemoryQuotaExhausted = 53;
69
+ DiskQuotaExhausted = 54;
70
+ TimeTickLongDelay = 55;
64
71
 
65
72
  // Service availability.
66
73
  // NA: Not Available.
@@ -177,6 +184,7 @@ enum MsgType {
177
184
  Delete = 401;
178
185
  Flush = 402;
179
186
  ResendSegmentStats = 403;
187
+ Upsert = 404;
180
188
 
181
189
  /* QUERY */
182
190
  Search = 500;
@@ -279,7 +287,8 @@ enum ImportState {
279
287
  ImportPending = 0; // the task in in pending list of rootCoord, waiting to be executed
280
288
  ImportFailed = 1; // the task failed for some reason, get detail reason from GetImportStateResponse.infos
281
289
  ImportStarted = 2; // the task has been sent to datanode to execute
282
- ImportPersisted = 5; // all data files have been parsed and data already persisted
290
+ ImportPersisted = 5; // all data files have been parsed and all meta data already persisted, ready to be flushed.
291
+ ImportFlushed = 8; // all segments are successfully flushed.
283
292
  ImportCompleted = 6; // all indexes are successfully built and segments are able to be compacted as normal.
284
293
  ImportFailedAndCleaned = 7; // the task failed and all segments it generated are cleaned up.
285
294
  }
@@ -317,6 +326,7 @@ enum ObjectPrivilege {
317
326
  PrivilegeSelectOwnership = 22;
318
327
  PrivilegeManageOwnership = 23;
319
328
  PrivilegeSelectUser = 24;
329
+ PrivilegeUpsert = 25;
320
330
  }
321
331
 
322
332
  message PrivilegeExt {
@@ -335,4 +345,12 @@ enum StateCode {
335
345
  Healthy = 1;
336
346
  Abnormal = 2;
337
347
  StandBy = 3;
348
+ Stopping = 4;
349
+ }
350
+
351
+ enum LoadState {
352
+ LoadStateNotExist = 0;
353
+ LoadStateNotLoad = 1;
354
+ LoadStateLoading = 2;
355
+ LoadStateLoaded = 3;
338
356
  }
@@ -518,6 +518,18 @@ message MessageOptions {
518
518
  reserved 8; // javalite_serializable
519
519
  reserved 9; // javanano_as_lite
520
520
 
521
+ // Enable the legacy handling of JSON field name conflicts. This lowercases
522
+ // and strips underscored from the fields before comparison in proto3 only.
523
+ // The new behavior takes `json_name` into account and applies to proto2 as
524
+ // well.
525
+ //
526
+ // This should only be used as a temporary measure against broken builds due
527
+ // to the change in behavior for JSON field name conflicts.
528
+ //
529
+ // TODO(b/261750190) This is legacy behavior we plan to remove once downstream
530
+ // teams have had time to migrate.
531
+ optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
532
+
521
533
  // The parser stores options it doesn't recognize here. See above.
522
534
  repeated UninterpretedOption uninterpreted_option = 999;
523
535
 
@@ -615,6 +627,10 @@ message FieldOptions {
615
627
  // For Google-internal migration only. Do not use.
616
628
  optional bool weak = 10 [default = false];
617
629
 
630
+ // Indicate that the field value should not be printed out when using debug
631
+ // formats, e.g. when the field contains sensitive credentials.
632
+ optional bool debug_redact = 16 [default = false];
633
+
618
634
  // The parser stores options it doesn't recognize here. See above.
619
635
  repeated UninterpretedOption uninterpreted_option = 999;
620
636
 
@@ -646,6 +662,14 @@ message EnumOptions {
646
662
 
647
663
  reserved 5; // javanano_as_lite
648
664
 
665
+ // Enable the legacy handling of JSON field name conflicts. This lowercases
666
+ // and strips underscored from the fields before comparison in proto3 only.
667
+ // The new behavior takes `json_name` into account and applies to proto2 as
668
+ // well.
669
+ // TODO(b/261750190) Remove this legacy behavior once downstream teams have
670
+ // had time to migrate.
671
+ optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
672
+
649
673
  // The parser stores options it doesn't recognize here. See above.
650
674
  repeated UninterpretedOption uninterpreted_option = 999;
651
675
 
@@ -8,6 +8,8 @@ option java_package = "io.milvus.grpc";
8
8
  option java_outer_classname = "MilvusProto";
9
9
  option java_generate_equals_and_hash = true;
10
10
 
11
+ option csharp_namespace = "IO.Milvus.Grpc";
12
+
11
13
  import "common.proto";
12
14
  import "schema.proto";
13
15
  import "google/protobuf/descriptor.proto";
@@ -32,6 +34,7 @@ service MilvusService {
32
34
  rpc ShowPartitions(ShowPartitionsRequest) returns (ShowPartitionsResponse) {}
33
35
 
34
36
  rpc GetLoadingProgress(GetLoadingProgressRequest) returns (GetLoadingProgressResponse) {}
37
+ rpc GetLoadState(GetLoadStateRequest) returns (GetLoadStateResponse) {}
35
38
 
36
39
  rpc CreateAlias(CreateAliasRequest) returns (common.Status) {}
37
40
  rpc DropAlias(DropAliasRequest) returns (common.Status) {}
@@ -47,6 +50,7 @@ service MilvusService {
47
50
 
48
51
  rpc Insert(InsertRequest) returns (MutationResult) {}
49
52
  rpc Delete(DeleteRequest) returns (MutationResult) {}
53
+ rpc Upsert(UpsertRequest) returns (MutationResult) {}
50
54
  rpc Search(SearchRequest) returns (SearchResults) {}
51
55
  rpc Flush(FlushRequest) returns (FlushResponse) {}
52
56
  rpc Query(QueryRequest) returns (QueryResults) {}
@@ -709,9 +713,24 @@ message InsertRequest {
709
713
  uint32 num_rows = 7;
710
714
  }
711
715
 
716
+ message UpsertRequest {
717
+ option (common.privilege_ext_obj) = {
718
+ object_type: Collection
719
+ object_privilege: PrivilegeUpsert
720
+ object_name_index: 3
721
+ };
722
+ common.MsgBase base = 1;
723
+ string db_name = 2;
724
+ string collection_name = 3;
725
+ string partition_name = 4;
726
+ repeated schema.FieldData fields_data = 5;
727
+ repeated uint32 hash_keys = 6;
728
+ uint32 num_rows = 7;
729
+ }
730
+
712
731
  message MutationResult {
713
732
  common.Status status = 1;
714
- schema.IDs IDs = 2; // required for insert, delete
733
+ schema.IDs IDs = 2; // required for insert, delete, upsert
715
734
  repeated uint32 succ_index = 3; // error indexes indicate
716
735
  repeated uint32 err_index = 4; // error indexes indicate
717
736
  bool acknowledged = 5;
@@ -957,6 +976,7 @@ message ManualCompactionRequest {
957
976
  message ManualCompactionResponse {
958
977
  common.Status status = 1;
959
978
  int64 compactionID = 2;
979
+ int32 compactionPlanCount = 3;
960
980
  }
961
981
 
962
982
  message GetCompactionStateRequest {
@@ -1326,6 +1346,18 @@ message GetLoadingProgressResponse {
1326
1346
  int64 progress = 2;
1327
1347
  }
1328
1348
 
1349
+ message GetLoadStateRequest {
1350
+ // Not useful for now
1351
+ common.MsgBase base = 1;
1352
+ string collection_name = 2;
1353
+ repeated string partition_names = 3;
1354
+ }
1355
+
1356
+ message GetLoadStateResponse {
1357
+ common.Status status = 1;
1358
+ common.LoadState state = 2;
1359
+ }
1360
+
1329
1361
  message MilvusExt {
1330
1362
  string version = 1;
1331
1363
  }
@@ -1342,6 +1374,14 @@ message GetVersionResponse {
1342
1374
  string version =2;
1343
1375
  }
1344
1376
 
1377
+ enum QuotaState {
1378
+ Unknown = 0;
1379
+ ReadLimited = 2;
1380
+ WriteLimited = 3;
1381
+ DenyToRead = 4;
1382
+ DenyToWrite = 5;
1383
+ }
1384
+
1345
1385
  message CheckHealthRequest {
1346
1386
  }
1347
1387
 
@@ -1349,4 +1389,5 @@ message CheckHealthResponse {
1349
1389
  common.Status status = 1;
1350
1390
  bool isHealthy = 2;
1351
1391
  repeated string reasons = 3;
1352
- }
1392
+ repeated QuotaState quota_states = 4;
1393
+ }
@@ -8,6 +8,8 @@ option java_package = "io.milvus.grpc";
8
8
  option java_outer_classname = "SchemaProto";
9
9
  option java_generate_equals_and_hash = true;
10
10
 
11
+ option csharp_namespace = "IO.Milvus.Grpc";
12
+
11
13
  import "common.proto";
12
14
 
13
15
  /**
package/dist/sdk.json CHANGED
@@ -1 +1 @@
1
- {"version":"2.2.0","milvusVersion":"v2.2.0"}
1
+ {"version":"2.2.2","milvusVersion":"v2.2.1"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@zilliz/milvus2-sdk-node",
3
3
  "author": "ued@zilliz.com",
4
- "version": "2.2.0",
5
- "milvusVersion": "v2.2.0",
4
+ "version": "2.2.2",
5
+ "milvusVersion": "v2.2.1",
6
6
  "main": "dist/milvus",
7
7
  "files": [
8
8
  "dist"