Skip to content

Commit

Permalink
Deprecated unused proto fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Sicheng Pan authored and Sicheng-Pan committed Dec 17, 2024
1 parent cf8f66a commit 64aceea
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 52 deletions.
64 changes: 32 additions & 32 deletions chromadb/proto/query_executor_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions chromadb/proto/query_executor_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions idl/chromadb/proto/query_executor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ import "chromadb/proto/chroma.proto";

message ScanOperator {
Collection collection = 1;
// Deprecated
string knn_id = 2;
// Deprecated
string metadata_id = 3;
// Deprecated
string record_id = 4;
// Reserve for deprecated fields
reserved 2, 3, 4;
Segment knn = 5;
Segment metadata = 6;
Segment record = 7;
Expand Down
6 changes: 0 additions & 6 deletions rust/worker/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,6 @@ mod tests {
log_position: 0,
version: 0,
}),
// Deprecated
knn_id: "".to_string(),
// Deprecated
metadata_id: "".to_string(),
// Deprecated
record_id: "".to_string(),
knn: Some(chroma_proto::Segment {
id: Uuid::new_v4().to_string(),
r#type: "urn:chroma:segment/vector/hnsw-distributed".to_string(),
Expand Down

0 comments on commit 64aceea

Please sign in to comment.