Skip to content

Commit d07b4dc

Browse files
authored
storage: Change the limitation of vector dimension (pingcap#260)
Signed-off-by: “EricZequan” <[email protected]>
1 parent e078397 commit d07b4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: dbms/src/TiDB/Schema/TiDB.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ try
482482

483483
auto dimension = vector_index_json->getValue<UInt64>("dimension");
484484
RUNTIME_CHECK(dimension > 0);
485-
RUNTIME_CHECK(dimension <= 16000); // Just a protection
485+
RUNTIME_CHECK(dimension <= 16383); // Just a protection
486486

487487
tipb::VectorDistanceMetric distance_metric = tipb::VectorDistanceMetric::INVALID_DISTANCE_METRIC;
488488
ok = tipb::VectorDistanceMetric_Parse( //

0 commit comments

Comments
 (0)