Skip to content

Commit

Permalink
Support logic partition
Browse files Browse the repository at this point in the history
Signed-off-by: xige-16 <[email protected]>
  • Loading branch information
xige-16 committed May 10, 2023
1 parent eaa38c8 commit 1d44741
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 80 deletions.
177 changes: 97 additions & 80 deletions go-api/schemapb/schema.pb.go

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

2 changes: 2 additions & 0 deletions proto/schema.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ message FieldSchema {
// state is `Created`.
DataType element_type = 10; // For array type, the element type is stored here
ValueField default_value = 11; // default_value only support scalars except array and json for now
bool is_partition_key = 12; // enable logic partitions
}

/**
Expand All @@ -68,6 +69,7 @@ message CollectionSchema {
string description = 2;
bool autoID = 3; // deprecated later, keep compatible with c++ part now
repeated FieldSchema fields = 4;
int64 partitions = 5; // num of default physical partitions, only used in partition key mode and changes are not supported
}

message BoolArray { repeated bool data = 1; }
Expand Down

0 comments on commit 1d44741

Please sign in to comment.