-
Notifications
You must be signed in to change notification settings - Fork 153
[Test for AI review]*: Add enable_distance_proj to ANNQueryInfo to indicate if reading distance column from vector index #352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: “EricZequan” <[email protected]>
/retest |
…ctor index is not built Signed-off-by: “EricZequan” <[email protected]>
Signed-off-by: “EricZequan” <[email protected]>
Signed-off-by: “EricZequan” <[email protected]>
Signed-off-by: “EricZequan” <[email protected]>
Signed-off-by: “EricZequan” <[email protected]>
Signed-off-by: “EricZequan” <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new boolean field (enable_distance_proj) to the ANNQueryInfo message to indicate whether to read a distance column from the vector index and adjusts associated field numbering and deprecation.
- Introduces enable_distance_proj to control distance projection behavior.
- Deprecates the original column_id field and adds a new ColumnInfo column field for schema metadata persistence.
- Renumbers ref_vec_f32 and index_id fields to accommodate the new fields while reserving space for future changes.
optional uint32 hnsw_ef_search = 20 [(gogoproto.nullable) = false]; // Only for HNSW indexes | ||
|
||
// If enabled, the content of TableScan's vector output column (whose ID is column.id) will be removed and | ||
// TableScan will read an distance column (whose id must be -2000) as replacement, tiflash persistent layer |
Copilot
AI
Mar 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typographical error: 'an distance column' should be 'a distance column'.
// TableScan will read an distance column (whose id must be -2000) as replacement, tiflash persistent layer | |
// TableScan will read a distance column (whose id must be -2000) as replacement, tiflash persistent layer |
Copilot uses AI. Check for mistakes.
optional uint32 hnsw_ef_search = 20 [(gogoproto.nullable) = false]; // Only for HNSW indexes | ||
|
||
// If enabled, the content of TableScan's vector output column (whose ID is column.id) will be removed and | ||
// TableScan will read an distance column (whose id must be -2000) as replacement, tiflash persistent layer |
Copilot
AI
Mar 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Typographical error: 'tiflash' should likely be 'TiFlash' to match standard capitalization.
// TableScan will read an distance column (whose id must be -2000) as replacement, tiflash persistent layer | |
// TableScan will read an distance column (whose id must be -2000) as replacement, TiFlash persistent layer |
Copilot uses AI. Check for mistakes.
optional string column_name = 4 [(gogoproto.nullable) = false]; // For debug purpose only. Currently only used in explain. | ||
optional int64 column_id = 5 [(gogoproto.nullable) = false]; | ||
// deprecated field, we use column to get the id first, and this field will not be set again. | ||
// Retain this field to be compatible with older versions of tidb |
Copilot
AI
Mar 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Typographical error: 'tidb' should be capitalized as 'TiDB'.
// Retain this field to be compatible with older versions of tidb | |
// Retain this field to be compatible with older versions of TiDB |
Copilot uses AI. Check for mistakes.
This PR is used for large model review and testing. New PR are moved to: #358 |
What problem does this PR solve?
Issue Number: ref pingcap/tidb#54245
Problem Summary:
What is changed and how it works?
Proposal: xxx
What's Changed:
How it Works:
Related changes
pingcap/docs
/pingcap/docs-cn
: