Skip to content

Commit

Permalink
Support dynamic schema (#148)
Browse files Browse the repository at this point in the history
Signed-off-by: cai.zhang <[email protected]>
  • Loading branch information
xiaocai2333 authored May 11, 2023
1 parent ec18fa3 commit c994831
Showing 1 changed file with 2 additions and 0 deletions.
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_dynamic = 12; // mark whether this field is the dynamic field
}

/**
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;
bool enable_dynamic_field = 5; // mark whether this table has the dynamic field function enabled.
}

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

0 comments on commit c994831

Please sign in to comment.