Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: JaySon <[email protected]>
  • Loading branch information
Lloyd-Pottiger and JaySon-Huang authored Aug 6, 2024
1 parent 10cccd8 commit b17a62a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dbms/src/Flash/Coprocessor/DAGQueryInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct DAGQueryInfo
const ColumnInfos & source_columns;
// filters in dag request
const google::protobuf::RepeatedPtrField<tipb::Expr> & filters;
// filters for approximate nearest neighbor (ann) vector search
const tipb::ANNQueryInfo & ann_query_info;
// filters have been push down to storage engine in dag request
const google::protobuf::RepeatedPtrField<tipb::Expr> & pushed_down_filters;
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/TiDB/Schema/TiDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ try

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

auto distance_metric
= magic_enum::enum_cast<DistanceMetric>(vector_index_json->getValue<String>("distance_metric"));
Expand Down
1 change: 1 addition & 0 deletions dbms/src/TiDB/Schema/TiDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ struct ColumnInfo
SchemaState state = StateNone;
String comment;

// TODO: This index will be moved to the table level later
VectorIndexInfoPtr vector_index = nullptr;

#ifdef M
Expand Down

0 comments on commit b17a62a

Please sign in to comment.