Skip to content

Commit e451d59

Browse files
author
Sicheng Pan
committed
Update lineage file format
1 parent 1e77d2c commit e451d59

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

idl/chromadb/proto/coordinator.proto

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -342,34 +342,13 @@ message CollectionSegmentInfo {
342342
// GC's {collection,version} selection policy.
343343
}
344344

345-
// Tuple of collection ID, tenant ID, and version.
346-
message CollectionVersionTuple {
347-
string collection_id = 1;
348-
string tenant_id = 2;
349-
int64 version = 3;
350-
}
351-
352345
message VersionListForCollection {
353346
string tenant_id = 1;
354347
string database_id = 2;
355348
string collection_id = 3;
356349
repeated int64 versions = 4;
357350
}
358351

359-
// Contains information about the lineage of a collection.
360-
message CollectionLineageInfo {
361-
// ID of the collection.
362-
string collection_id = 1;
363-
// ID of the tenant.
364-
string tenant_id = 2;
365-
// Whether the collection is a root collection.
366-
bool is_root_collection = 3;
367-
// An ordered list of descendant collections.
368-
// The first element is the root {collection, version}, and the last
369-
// element is the direct parent of the current collection.
370-
repeated CollectionVersionTuple parent_collections = 4;
371-
}
372-
373352
// Request to list versions of a collection.
374353
message ListCollectionVersionsRequest {
375354
string collection_id = 1;
@@ -391,6 +370,16 @@ message ListCollectionVersionsResponse {
391370
bool list_is_truncated = 2;
392371
}
393372

373+
message CollectionLineageFile {
374+
repeated CollectionVersionDependency dependencies = 1;
375+
}
376+
377+
message CollectionVersionDependency {
378+
string source_collection_id = 1; // The forked collection
379+
uint64 source_collection_version = 2; // The forked collection version
380+
string target_collection_id = 3; // The forking collection
381+
}
382+
394383
// Request to restore a collection.
395384
message RestoreCollectionRequest {
396385
string collection_id = 1;

0 commit comments

Comments
 (0)