Skip to content

Commit

Permalink
storage: Change the limitation of vector dimension (pingcap#260)
Browse files Browse the repository at this point in the history
Signed-off-by: “EricZequan” <zequany33@gmail.com>
  • Loading branch information
EricZequan authored Aug 6, 2024
1 parent e078397 commit d07b4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/TiDB/Schema/TiDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ try

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

tipb::VectorDistanceMetric distance_metric = tipb::VectorDistanceMetric::INVALID_DISTANCE_METRIC;
ok = tipb::VectorDistanceMetric_Parse( //
Expand Down

0 comments on commit d07b4dc

Please sign in to comment.