chaoyli commented on a change in pull request #467: change Rowset pointer to 
std::shared_ptr<Rowset>
URL: https://github.com/apache/incubator-doris/pull/467#discussion_r243903781
 
 

 ##########
 File path: gensrc/proto/olap_file.proto
 ##########
 @@ -183,6 +183,47 @@ message OLAPHeaderMessage {
     repeated RowsetMetaPB incremental_rowsets = 25;
 }
 
+enum AlterTabletStatePB {
+    ALTERING = 0;
+    FINISHED = 1;
+    FAILED = 2;
+}
+
+enum AlterTabletTypePB {
+    SCHEMA_CHANGE = 0;
+    ROLLUP = 1;
+}
+
+message AlterTabletPB {
+    required int64 related_tablet_id = 1;
+    optional int64 related_schema_hash = 2;
+    repeated RowsetMetaPB rowsets_to_alter = 3;
+    optional AlterTabletStatePB alter_state = 4;
+    optional AlterTabletTypePB alter_type = 5; 
+}
+
+enum TabletStatePB {
+    NOTREADY = 0; // under alter table, rollup, clone
+    RUNNING = 1;
+    TOMBSTONED = 2;
+    STOPPED = 3;
+    SHUTDOWN = 4;
+}
+
+message TabletMetaPB {
+    optional int64 table_id = 1;
+    optional int64 partition_id = 2;
+    optional int64 tablet_id = 3;
+    optional int64 schema_hash = 4;
+    optional int32 shard_id = 5;
+
+    optional SchemaPB schema = 6;
+    repeated RowsetMetaPB rs_meta = 7;
 
 Review comment:
   Sometime I may have function named as delete_inc_rs_meta_by_version this 
function, so abbreviation is better to read.
   Of course, I should use the plural form.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to