Skip to content

Commit 25785fa

Browse files
kungagithub-actions[bot]
authored andcommitted
Validate vector index settings (#23204)
1 parent 27d1c07 commit 25785fa

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/last_commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
af4a59730e62ce87813dd141cab505ff94c465d1
1+
730ae3fcb84a9a6b29a233c52ee6c519cac1e144

src/api/protos/ydb_table.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@ message VectorIndexSettings {
7979
VECTOR_TYPE_BIT = 4;
8080
}
8181

82-
Metric metric = 1;
82+
optional Metric metric = 1;
8383

84-
VectorType vector_type = 2;
84+
optional VectorType vector_type = 2;
8585

86-
uint32 vector_dimension = 3;
86+
optional uint32 vector_dimension = 3;
8787
}
8888

8989
message KMeansTreeSettings {
9090
VectorIndexSettings settings = 1;
91-
// average count of clusters on each level of tree, 0 -- means auto
92-
uint32 clusters = 2;
93-
// average count of levels in the tree, 0 -- means auto
94-
uint32 levels = 3;
91+
92+
optional uint32 clusters = 2;
93+
94+
optional uint32 levels = 3;
9595
}
9696

9797
message GlobalIndex {

0 commit comments

Comments
 (0)