feat: introduce partition_rule_version (#306)

* feat: introduce `partition_rule_version`

Signed-off-by: WenyXu <wenymedia@gmail.com>

* feat: introduce `partition_rule_version`

Signed-off-by: WenyXu <wenymedia@gmail.com>

* feat: introduce PartitionRuleVersion

Signed-off-by: WenyXu <wenymedia@gmail.com>

* chore: apply suggestions

Signed-off-by: WenyXu <wenymedia@gmail.com>

---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Weny Xu
2026-02-06 19:34:18 +08:00
committed by GitHub
parent f1e0ea3a71
commit b9452e3411
15 changed files with 3348 additions and 884 deletions
+281 -124
View File
@@ -120,6 +120,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
PROTOBUF_CONSTEXPR InsertRequest::InsertRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.rows_)*/nullptr
, /*decltype(_impl_.partition_rule_version_)*/nullptr
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct InsertRequestDefaultTypeInternal {
@@ -134,6 +135,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
PROTOBUF_CONSTEXPR DeleteRequest::DeleteRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.rows_)*/nullptr
, /*decltype(_impl_.partition_rule_version_)*/nullptr
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteRequestDefaultTypeInternal {
@@ -463,7 +465,8 @@ struct RegionColumnDefDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegionColumnDefDefaultTypeInternal _RegionColumnDef_default_instance_;
PROTOBUF_CONSTEXPR BulkInsertRequest::BulkInsertRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.region_id_)*/uint64_t{0u}
/*decltype(_impl_.partition_rule_version_)*/nullptr
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_.body_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}} {}
@@ -669,6 +672,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _impl_.region_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _impl_.rows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::InsertRequest, _impl_.partition_rule_version_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -677,6 +681,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _impl_.region_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _impl_.rows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DeleteRequest, _impl_.partition_rule_version_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::QueryRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -887,6 +892,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::BulkInsertRequest, _impl_.region_id_),
::_pbi::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::BulkInsertRequest, _impl_.partition_rule_version_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::BulkInsertRequest, _impl_.body_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::MitoManifestInfo, _internal_metadata_),
@@ -954,38 +960,38 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 65, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
{ 72, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
{ 79, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
{ 87, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
{ 95, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
{ 104, -1, -1, sizeof(::greptime::v1::region::CreateRequests)},
{ 111, 119, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
{ 121, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
{ 134, -1, -1, sizeof(::greptime::v1::region::DropRequests)},
{ 141, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
{ 151, 159, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
{ 161, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
{ 171, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 178, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
{ 185, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 206, -1, -1, sizeof(::greptime::v1::region::SyncColumns)},
{ 213, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 220, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 227, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 235, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 242, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 249, -1, -1, sizeof(::greptime::v1::region::Regular)},
{ 255, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 262, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 273, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 283, -1, -1, sizeof(::greptime::v1::region::All)},
{ 289, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 297, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 306, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 313, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 321, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 331, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
{ 338, -1, -1, sizeof(::greptime::v1::region::BuildIndexRequest)},
{ 345, -1, -1, sizeof(::greptime::v1::region::FileMetas)},
{ 352, -1, -1, sizeof(::greptime::v1::region::ApplyStagingManifestRequest)},
{ 88, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
{ 97, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
{ 106, -1, -1, sizeof(::greptime::v1::region::CreateRequests)},
{ 113, 121, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
{ 123, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
{ 136, -1, -1, sizeof(::greptime::v1::region::DropRequests)},
{ 143, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
{ 153, 161, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
{ 163, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
{ 173, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 180, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
{ 187, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 208, -1, -1, sizeof(::greptime::v1::region::SyncColumns)},
{ 215, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 222, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 229, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 237, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 244, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 251, -1, -1, sizeof(::greptime::v1::region::Regular)},
{ 257, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 264, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 275, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 285, -1, -1, sizeof(::greptime::v1::region::All)},
{ 291, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 299, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 309, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 316, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 324, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 334, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
{ 341, -1, -1, sizeof(::greptime::v1::region::BuildIndexRequest)},
{ 348, -1, -1, sizeof(::greptime::v1::region::FileMetas)},
{ 355, -1, -1, sizeof(::greptime::v1::region::ApplyStagingManifestRequest)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -1078,93 +1084,98 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"ts\0223\n\010requests\030\001 \003(\0132!.greptime.v1.regio"
"n.InsertRequest\"E\n\016DeleteRequests\0223\n\010req"
"uests\030\001 \003(\0132!.greptime.v1.region.DeleteR"
"equest\"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001"
"(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"C\n\rD"
"eleteRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030"
"\002 \001(\0132\021.greptime.v1.Rows\"h\n\014QueryRequest"
"\0227\n\006header\030\001 \001(\0132\'.greptime.v1.region.Re"
"gionRequestHeader\022\021\n\tregion_id\030\002 \001(\004\022\014\n\004"
"plan\030\003 \001(\014\"E\n\016CreateRequests\0223\n\010requests"
"\030\001 \003(\0132!.greptime.v1.region.CreateReques"
"t\"\260\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022\016"
"\n\006engine\030\002 \001(\t\0228\n\013column_defs\030\003 \003(\0132#.gr"
"eptime.v1.region.RegionColumnDef\022\023\n\013prim"
"ary_key\030\004 \003(\r\022\014\n\004path\030\005 \001(\t\022\?\n\007options\030\006"
" \003(\0132..greptime.v1.region.CreateRequest."
"OptionsEntry\022.\n\tpartition\030\007 \001(\0132\033.grepti"
"me.v1.meta.Partition\032.\n\014OptionsEntry\022\013\n\003"
"key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"A\n\014DropRequ"
"ests\0221\n\010requests\030\001 \003(\0132\037.greptime.v1.reg"
"ion.DropRequest\"X\n\013DropRequest\022\021\n\tregion"
"_id\030\001 \001(\004\022\021\n\tfast_path\030\002 \001(\010\022\r\n\005force\030\003 "
"\001(\010\022\024\n\014partial_drop\030\004 \001(\010\"\255\001\n\013OpenReques"
"t\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\014\n\004"
"path\030\003 \001(\t\022=\n\007options\030\004 \003(\0132,.greptime.v"
"1.region.OpenRequest.OptionsEntry\032.\n\014Opt"
"ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028"
"\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001(\004\"C\n\r"
"AlterRequests\0222\n\010requests\030\001 \003(\0132 .grepti"
"me.v1.region.AlterRequest\"\311\005\n\014AlterReque"
"st\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030\002 \001"
"(\0132\036.greptime.v1.region.AddColumnsH\000\0227\n\014"
"drop_columns\030\003 \001(\0132\037.greptime.v1.region."
"DropColumnsH\000\022=\n\023modify_column_types\030\005 \001"
"(\0132\036.greptime.v1.ModifyColumnTypesH\000\0229\n\021"
"set_table_options\030\006 \001(\0132\034.greptime.v1.Se"
"tTableOptionsH\000\022=\n\023unset_table_options\030\t"
" \001(\0132\036.greptime.v1.UnsetTableOptionsH\000\022*"
"\n\tset_index\030\n \001(\0132\025.greptime.v1.SetIndex"
"H\000\022.\n\013unset_index\030\013 \001(\0132\027.greptime.v1.Un"
"setIndexH\000\0222\n\rdrop_defaults\030\014 \001(\0132\031.grep"
"time.v1.DropDefaultsH\000\022.\n\013set_indexes\030\r "
"\001(\0132\027.greptime.v1.SetIndexesH\000\0222\n\runset_"
"indexes\030\016 \001(\0132\031.greptime.v1.UnsetIndexes"
"H\000\0220\n\014set_defaults\030\017 \001(\0132\030.greptime.v1.S"
"etDefaultsH\000\0227\n\014sync_columns\030\020 \001(\0132\037.gre"
"ptime.v1.region.SyncColumnsH\000\022\026\n\016schema_"
"version\030\004 \001(\004B\006\n\004kind\"G\n\013SyncColumns\0228\n\013"
"column_defs\030\001 \003(\0132#.greptime.v1.region.R"
"egionColumnDef\"@\n\nAddColumns\0222\n\013add_colu"
"mns\030\001 \003(\0132\035.greptime.v1.region.AddColumn"
"\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132\036."
"greptime.v1.region.DropColumn\"v\n\tAddColu"
"mn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.reg"
"ion.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036."
"greptime.v1.AddColumnLocation\"\032\n\nDropCol"
"umn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\treg"
"ion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022"
"\026\n\016window_seconds\030\001 \001(\003\"\256\001\n\016CompactReque"
"st\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033"
".greptime.v1.region.RegularH\000\0229\n\rstrict_"
"window\030\003 \001(\0132 .greptime.v1.region.Strict"
"WindowH\000\022\023\n\013parallelism\030\004 \001(\rB\t\n\007options"
"\"\204\001\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\022"
"&\n\003all\030\002 \001(\0132\027.greptime.v1.region.AllH\000\022"
".\n\013time_ranges\030\003 \001(\0132\027.greptime.v1.TimeR"
"angesH\000B\006\n\004kind\"\005\n\003All\"P\n\017RegionColumnDe"
"f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu"
"mnDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertRe"
"quest\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 "
"\001(\0132\025.greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020"
"MitoManifestInfo\022\035\n\025data_manifest_versio"
"n\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025data_ma"
"nifest_version\030\001 \001(\004\022!\n\031metadata_manifes"
"t_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregio"
"n_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$"
".greptime.v1.region.MitoManifestInfoH\000\022F"
"\n\024metric_manifest_info\030\003 \001(\0132&.greptime."
"v1.region.MetricManifestInfoH\000B\017\n\rmanife"
"st_info\")\n\023ListMetadataRequest\022\022\n\nregion"
"_ids\030\001 \003(\004\"&\n\021BuildIndexRequest\022\021\n\tregio"
"n_id\030\001 \001(\004\"\031\n\tFileMetas\022\014\n\004data\030\001 \001(\014\"z\n"
"\033ApplyStagingManifestRequest\022\021\n\tregion_i"
"d\030\001 \001(\004\022\026\n\016partition_expr\030\002 \001(\t\022\031\n\021centr"
"al_region_id\030\003 \001(\004\022\025\n\rmanifest_path\030\004 \001("
"\t2Y\n\006Region\022O\n\006Handle\022!.greptime.v1.regi"
"on.RegionRequest\032\".greptime.v1.region.Re"
"gionResponseB]\n\025io.greptime.v1.regionB\006S"
"erverZ<github.com/GreptimeTeam/greptime-"
"proto/go/greptime/v1/regionb\006proto3"
"equest\"\206\001\n\rInsertRequest\022\021\n\tregion_id\030\001 "
"\001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\022A\n\026"
"partition_rule_version\030\003 \001(\0132!.greptime."
"v1.PartitionRuleVersion\"\206\001\n\rDeleteReques"
"t\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.gre"
"ptime.v1.Rows\022A\n\026partition_rule_version\030"
"\003 \001(\0132!.greptime.v1.PartitionRuleVersion"
"\"h\n\014QueryRequest\0227\n\006header\030\001 \001(\0132\'.grept"
"ime.v1.region.RegionRequestHeader\022\021\n\treg"
"ion_id\030\002 \001(\004\022\014\n\004plan\030\003 \001(\014\"E\n\016CreateRequ"
"ests\0223\n\010requests\030\001 \003(\0132!.greptime.v1.reg"
"ion.CreateRequest\"\260\002\n\rCreateRequest\022\021\n\tr"
"egion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\0228\n\013column"
"_defs\030\003 \003(\0132#.greptime.v1.region.RegionC"
"olumnDef\022\023\n\013primary_key\030\004 \003(\r\022\014\n\004path\030\005 "
"\001(\t\022\?\n\007options\030\006 \003(\0132..greptime.v1.regio"
"n.CreateRequest.OptionsEntry\022.\n\tpartitio"
"n\030\007 \001(\0132\033.greptime.v1.meta.Partition\032.\n\014"
"OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
":\0028\001\"A\n\014DropRequests\0221\n\010requests\030\001 \003(\0132\037"
".greptime.v1.region.DropRequest\"X\n\013DropR"
"equest\022\021\n\tregion_id\030\001 \001(\004\022\021\n\tfast_path\030\002"
" \001(\010\022\r\n\005force\030\003 \001(\010\022\024\n\014partial_drop\030\004 \001("
"\010\"\255\001\n\013OpenRequest\022\021\n\tregion_id\030\001 \001(\004\022\016\n\006"
"engine\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022=\n\007options\030\004 "
"\003(\0132,.greptime.v1.region.OpenRequest.Opt"
"ionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r"
"\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\treg"
"ion_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010request"
"s\030\001 \003(\0132 .greptime.v1.region.AlterReques"
"t\"\311\005\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n"
"\013add_columns\030\002 \001(\0132\036.greptime.v1.region."
"AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.gre"
"ptime.v1.region.DropColumnsH\000\022=\n\023modify_"
"column_types\030\005 \001(\0132\036.greptime.v1.ModifyC"
"olumnTypesH\000\0229\n\021set_table_options\030\006 \001(\0132"
"\034.greptime.v1.SetTableOptionsH\000\022=\n\023unset"
"_table_options\030\t \001(\0132\036.greptime.v1.Unset"
"TableOptionsH\000\022*\n\tset_index\030\n \001(\0132\025.grep"
"time.v1.SetIndexH\000\022.\n\013unset_index\030\013 \001(\0132"
"\027.greptime.v1.UnsetIndexH\000\0222\n\rdrop_defau"
"lts\030\014 \001(\0132\031.greptime.v1.DropDefaultsH\000\022."
"\n\013set_indexes\030\r \001(\0132\027.greptime.v1.SetInd"
"exesH\000\0222\n\runset_indexes\030\016 \001(\0132\031.greptime"
".v1.UnsetIndexesH\000\0220\n\014set_defaults\030\017 \001(\013"
"2\030.greptime.v1.SetDefaultsH\000\0227\n\014sync_col"
"umns\030\020 \001(\0132\037.greptime.v1.region.SyncColu"
"mnsH\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"G\n"
"\013SyncColumns\0228\n\013column_defs\030\001 \003(\0132#.grep"
"time.v1.region.RegionColumnDef\"@\n\nAddCol"
"umns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1."
"region.AddColumn\"C\n\013DropColumns\0224\n\014drop_"
"columns\030\001 \003(\0132\036.greptime.v1.region.DropC"
"olumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#"
".greptime.v1.region.RegionColumnDef\0220\n\010l"
"ocation\030\003 \001(\0132\036.greptime.v1.AddColumnLoc"
"ation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Flu"
"shRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\""
"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(\003\""
"\256\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n"
"\007regular\030\002 \001(\0132\033.greptime.v1.region.Regu"
"larH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime."
"v1.region.StrictWindowH\000\022\023\n\013parallelism\030"
"\004 \001(\rB\t\n\007options\"\204\001\n\017TruncateRequest\022\021\n\t"
"region_id\030\001 \001(\004\022&\n\003all\030\002 \001(\0132\027.greptime."
"v1.region.AllH\000\022.\n\013time_ranges\030\003 \001(\0132\027.g"
"reptime.v1.TimeRangesH\000B\006\n\004kind\"\005\n\003All\"P"
"\n\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026."
"greptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r"
"\"\235\001\n\021BulkInsertRequest\022\021\n\tregion_id\030\001 \001("
"\004\022*\n\tarrow_ipc\030\002 \001(\0132\025.greptime.v1.Arrow"
"IpcH\000\022A\n\026partition_rule_version\030\003 \001(\0132!."
"greptime.v1.PartitionRuleVersionB\006\n\004body"
"\"1\n\020MitoManifestInfo\022\035\n\025data_manifest_ve"
"rsion\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025dat"
"a_manifest_version\030\001 \001(\004\022!\n\031metadata_man"
"ifest_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tr"
"egion_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001"
"(\0132$.greptime.v1.region.MitoManifestInfo"
"H\000\022F\n\024metric_manifest_info\030\003 \001(\0132&.grept"
"ime.v1.region.MetricManifestInfoH\000B\017\n\rma"
"nifest_info\")\n\023ListMetadataRequest\022\022\n\nre"
"gion_ids\030\001 \003(\004\"&\n\021BuildIndexRequest\022\021\n\tr"
"egion_id\030\001 \001(\004\"\031\n\tFileMetas\022\014\n\004data\030\001 \001("
"\014\"z\n\033ApplyStagingManifestRequest\022\021\n\tregi"
"on_id\030\001 \001(\004\022\026\n\016partition_expr\030\002 \001(\t\022\031\n\021c"
"entral_region_id\030\003 \001(\004\022\025\n\rmanifest_path\030"
"\004 \001(\t2Y\n\006Region\022O\n\006Handle\022!.greptime.v1."
"region.RegionRequest\032\".greptime.v1.regio"
"n.RegionResponseB]\n\025io.greptime.v1.regio"
"nB\006ServerZ<github.com/GreptimeTeam/grept"
"ime-proto/go/greptime/v1/regionb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[4] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -1174,7 +1185,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
false, false, 5315, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
false, false, 5519, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
"greptime/v1/region/server.proto",
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 4, 40,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
@@ -3529,18 +3540,29 @@ void DeleteRequests::InternalSwap(DeleteRequests* other) {
class InsertRequest::_Internal {
public:
static const ::greptime::v1::Rows& rows(const InsertRequest* msg);
static const ::greptime::v1::PartitionRuleVersion& partition_rule_version(const InsertRequest* msg);
};
const ::greptime::v1::Rows&
InsertRequest::_Internal::rows(const InsertRequest* msg) {
return *msg->_impl_.rows_;
}
const ::greptime::v1::PartitionRuleVersion&
InsertRequest::_Internal::partition_rule_version(const InsertRequest* msg) {
return *msg->_impl_.partition_rule_version_;
}
void InsertRequest::clear_rows() {
if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
}
void InsertRequest::clear_partition_rule_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
}
InsertRequest::InsertRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -3552,6 +3574,7 @@ InsertRequest::InsertRequest(const InsertRequest& from)
InsertRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.rows_){nullptr}
, decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -3559,6 +3582,9 @@ InsertRequest::InsertRequest(const InsertRequest& from)
if (from._internal_has_rows()) {
_this->_impl_.rows_ = new ::greptime::v1::Rows(*from._impl_.rows_);
}
if (from._internal_has_partition_rule_version()) {
_this->_impl_.partition_rule_version_ = new ::greptime::v1::PartitionRuleVersion(*from._impl_.partition_rule_version_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.InsertRequest)
}
@@ -3569,6 +3595,7 @@ inline void InsertRequest::SharedCtor(
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.rows_){nullptr}
, decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -3586,6 +3613,7 @@ InsertRequest::~InsertRequest() {
inline void InsertRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.rows_;
if (this != internal_default_instance()) delete _impl_.partition_rule_version_;
}
void InsertRequest::SetCachedSize(int size) const {
@@ -3602,6 +3630,10 @@ void InsertRequest::Clear() {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3628,6 +3660,14 @@ const char* InsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -3670,6 +3710,13 @@ uint8_t* InsertRequest::_InternalSerialize(
_Internal::rows(this).GetCachedSize(), target, stream);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -3693,6 +3740,13 @@ size_t InsertRequest::ByteSizeLong() const {
*_impl_.rows_);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
}
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
@@ -3720,6 +3774,10 @@ void InsertRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
_this->_internal_mutable_rows()->::greptime::v1::Rows::MergeFrom(
from._internal_rows());
}
if (from._internal_has_partition_rule_version()) {
_this->_internal_mutable_partition_rule_version()->::greptime::v1::PartitionRuleVersion::MergeFrom(
from._internal_partition_rule_version());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
@@ -3759,18 +3817,29 @@ void InsertRequest::InternalSwap(InsertRequest* other) {
class DeleteRequest::_Internal {
public:
static const ::greptime::v1::Rows& rows(const DeleteRequest* msg);
static const ::greptime::v1::PartitionRuleVersion& partition_rule_version(const DeleteRequest* msg);
};
const ::greptime::v1::Rows&
DeleteRequest::_Internal::rows(const DeleteRequest* msg) {
return *msg->_impl_.rows_;
}
const ::greptime::v1::PartitionRuleVersion&
DeleteRequest::_Internal::partition_rule_version(const DeleteRequest* msg) {
return *msg->_impl_.partition_rule_version_;
}
void DeleteRequest::clear_rows() {
if (GetArenaForAllocation() == nullptr && _impl_.rows_ != nullptr) {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
}
void DeleteRequest::clear_partition_rule_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
}
DeleteRequest::DeleteRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -3782,6 +3851,7 @@ DeleteRequest::DeleteRequest(const DeleteRequest& from)
DeleteRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.rows_){nullptr}
, decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -3789,6 +3859,9 @@ DeleteRequest::DeleteRequest(const DeleteRequest& from)
if (from._internal_has_rows()) {
_this->_impl_.rows_ = new ::greptime::v1::Rows(*from._impl_.rows_);
}
if (from._internal_has_partition_rule_version()) {
_this->_impl_.partition_rule_version_ = new ::greptime::v1::PartitionRuleVersion(*from._impl_.partition_rule_version_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.DeleteRequest)
}
@@ -3799,6 +3872,7 @@ inline void DeleteRequest::SharedCtor(
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.rows_){nullptr}
, decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -3816,6 +3890,7 @@ DeleteRequest::~DeleteRequest() {
inline void DeleteRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.rows_;
if (this != internal_default_instance()) delete _impl_.partition_rule_version_;
}
void DeleteRequest::SetCachedSize(int size) const {
@@ -3832,6 +3907,10 @@ void DeleteRequest::Clear() {
delete _impl_.rows_;
}
_impl_.rows_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3858,6 +3937,14 @@ const char* DeleteRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -3900,6 +3987,13 @@ uint8_t* DeleteRequest::_InternalSerialize(
_Internal::rows(this).GetCachedSize(), target, stream);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -3923,6 +4017,13 @@ size_t DeleteRequest::ByteSizeLong() const {
*_impl_.rows_);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
}
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
@@ -3950,6 +4051,10 @@ void DeleteRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
_this->_internal_mutable_rows()->::greptime::v1::Rows::MergeFrom(
from._internal_rows());
}
if (from._internal_has_partition_rule_version()) {
_this->_internal_mutable_partition_rule_version()->::greptime::v1::PartitionRuleVersion::MergeFrom(
from._internal_partition_rule_version());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
@@ -9505,12 +9610,17 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) {
class BulkInsertRequest::_Internal {
public:
static const ::greptime::v1::ArrowIpc& arrow_ipc(const BulkInsertRequest* msg);
static const ::greptime::v1::PartitionRuleVersion& partition_rule_version(const BulkInsertRequest* msg);
};
const ::greptime::v1::ArrowIpc&
BulkInsertRequest::_Internal::arrow_ipc(const BulkInsertRequest* msg) {
return *msg->_impl_.body_.arrow_ipc_;
}
const ::greptime::v1::PartitionRuleVersion&
BulkInsertRequest::_Internal::partition_rule_version(const BulkInsertRequest* msg) {
return *msg->_impl_.partition_rule_version_;
}
void BulkInsertRequest::set_allocated_arrow_ipc(::greptime::v1::ArrowIpc* arrow_ipc) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_body();
@@ -9535,6 +9645,12 @@ void BulkInsertRequest::clear_arrow_ipc() {
clear_has_body();
}
}
void BulkInsertRequest::clear_partition_rule_version() {
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
}
BulkInsertRequest::BulkInsertRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -9545,12 +9661,16 @@ BulkInsertRequest::BulkInsertRequest(const BulkInsertRequest& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
BulkInsertRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.region_id_){}
decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.region_id_){}
, decltype(_impl_.body_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_partition_rule_version()) {
_this->_impl_.partition_rule_version_ = new ::greptime::v1::PartitionRuleVersion(*from._impl_.partition_rule_version_);
}
_this->_impl_.region_id_ = from._impl_.region_id_;
clear_has_body();
switch (from.body_case()) {
@@ -9571,7 +9691,8 @@ inline void BulkInsertRequest::SharedCtor(
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.region_id_){uint64_t{0u}}
decltype(_impl_.partition_rule_version_){nullptr}
, decltype(_impl_.region_id_){uint64_t{0u}}
, decltype(_impl_.body_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}
@@ -9590,6 +9711,7 @@ BulkInsertRequest::~BulkInsertRequest() {
inline void BulkInsertRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.partition_rule_version_;
if (has_body()) {
clear_body();
}
@@ -9622,6 +9744,10 @@ void BulkInsertRequest::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
if (GetArenaForAllocation() == nullptr && _impl_.partition_rule_version_ != nullptr) {
delete _impl_.partition_rule_version_;
}
_impl_.partition_rule_version_ = nullptr;
_impl_.region_id_ = uint64_t{0u};
clear_body();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
@@ -9649,6 +9775,14 @@ const char* BulkInsertRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont
} else
goto handle_unusual;
continue;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_partition_rule_version(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -9691,6 +9825,13 @@ uint8_t* BulkInsertRequest::_InternalSerialize(
_Internal::arrow_ipc(this).GetCachedSize(), target, stream);
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::partition_rule_version(this),
_Internal::partition_rule_version(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -9707,6 +9848,13 @@ size_t BulkInsertRequest::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
if (this->_internal_has_partition_rule_version()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.partition_rule_version_);
}
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
@@ -9742,6 +9890,10 @@ void BulkInsertRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_has_partition_rule_version()) {
_this->_internal_mutable_partition_rule_version()->::greptime::v1::PartitionRuleVersion::MergeFrom(
from._internal_partition_rule_version());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
@@ -9772,7 +9924,12 @@ bool BulkInsertRequest::IsInitialized() const {
void BulkInsertRequest::InternalSwap(BulkInsertRequest* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.region_id_, other->_impl_.region_id_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(BulkInsertRequest, _impl_.region_id_)
+ sizeof(BulkInsertRequest::_impl_.region_id_)
- PROTOBUF_FIELD_OFFSET(BulkInsertRequest, _impl_.partition_rule_version_)>(
reinterpret_cast<char*>(&_impl_.partition_rule_version_),
reinterpret_cast<char*>(&other->_impl_.partition_rule_version_));
swap(_impl_.body_, other->_impl_.body_);
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}
+315
View File
@@ -1693,6 +1693,7 @@ class InsertRequest final :
enum : int {
kRowsFieldNumber = 2,
kPartitionRuleVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
};
// .greptime.v1.Rows rows = 2;
@@ -1713,6 +1714,24 @@ class InsertRequest final :
::greptime::v1::Rows* rows);
::greptime::v1::Rows* unsafe_arena_release_rows();
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
bool has_partition_rule_version() const;
private:
bool _internal_has_partition_rule_version() const;
public:
void clear_partition_rule_version();
const ::greptime::v1::PartitionRuleVersion& partition_rule_version() const;
PROTOBUF_NODISCARD ::greptime::v1::PartitionRuleVersion* release_partition_rule_version();
::greptime::v1::PartitionRuleVersion* mutable_partition_rule_version();
void set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_version();
public:
void unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version);
::greptime::v1::PartitionRuleVersion* unsafe_arena_release_partition_rule_version();
// uint64 region_id = 1;
void clear_region_id();
uint64_t region_id() const;
@@ -1731,6 +1750,7 @@ class InsertRequest final :
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::Rows* rows_;
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -1861,6 +1881,7 @@ class DeleteRequest final :
enum : int {
kRowsFieldNumber = 2,
kPartitionRuleVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
};
// .greptime.v1.Rows rows = 2;
@@ -1881,6 +1902,24 @@ class DeleteRequest final :
::greptime::v1::Rows* rows);
::greptime::v1::Rows* unsafe_arena_release_rows();
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
bool has_partition_rule_version() const;
private:
bool _internal_has_partition_rule_version() const;
public:
void clear_partition_rule_version();
const ::greptime::v1::PartitionRuleVersion& partition_rule_version() const;
PROTOBUF_NODISCARD ::greptime::v1::PartitionRuleVersion* release_partition_rule_version();
::greptime::v1::PartitionRuleVersion* mutable_partition_rule_version();
void set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_version();
public:
void unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version);
::greptime::v1::PartitionRuleVersion* unsafe_arena_release_partition_rule_version();
// uint64 region_id = 1;
void clear_region_id();
uint64_t region_id() const;
@@ -1899,6 +1938,7 @@ class DeleteRequest final :
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::Rows* rows_;
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -5914,9 +5954,28 @@ class BulkInsertRequest final :
// accessors -------------------------------------------------------
enum : int {
kPartitionRuleVersionFieldNumber = 3,
kRegionIdFieldNumber = 1,
kArrowIpcFieldNumber = 2,
};
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
bool has_partition_rule_version() const;
private:
bool _internal_has_partition_rule_version() const;
public:
void clear_partition_rule_version();
const ::greptime::v1::PartitionRuleVersion& partition_rule_version() const;
PROTOBUF_NODISCARD ::greptime::v1::PartitionRuleVersion* release_partition_rule_version();
::greptime::v1::PartitionRuleVersion* mutable_partition_rule_version();
void set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version);
private:
const ::greptime::v1::PartitionRuleVersion& _internal_partition_rule_version() const;
::greptime::v1::PartitionRuleVersion* _internal_mutable_partition_rule_version();
public:
void unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version);
::greptime::v1::PartitionRuleVersion* unsafe_arena_release_partition_rule_version();
// uint64 region_id = 1;
void clear_region_id();
uint64_t region_id() const;
@@ -5958,6 +6017,7 @@ class BulkInsertRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::PartitionRuleVersion* partition_rule_version_;
uint64_t region_id_;
union BodyUnion {
constexpr BodyUnion() : _constinit_{} {}
@@ -9138,6 +9198,91 @@ inline void InsertRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.InsertRequest.rows)
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
inline bool InsertRequest::_internal_has_partition_rule_version() const {
return this != internal_default_instance() && _impl_.partition_rule_version_ != nullptr;
}
inline bool InsertRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_version();
}
inline const ::greptime::v1::PartitionRuleVersion& InsertRequest::_internal_partition_rule_version() const {
const ::greptime::v1::PartitionRuleVersion* p = _impl_.partition_rule_version_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::PartitionRuleVersion&>(
::greptime::v1::_PartitionRuleVersion_default_instance_);
}
inline const ::greptime::v1::PartitionRuleVersion& InsertRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.InsertRequest.partition_rule_version)
return _internal_partition_rule_version();
}
inline void InsertRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.InsertRequest.partition_rule_version)
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::release_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.InsertRequest.partition_rule_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::_internal_mutable_partition_rule_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
}
return _impl_.partition_rule_version_;
}
inline ::greptime::v1::PartitionRuleVersion* InsertRequest::mutable_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* _msg = _internal_mutable_partition_rule_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.InsertRequest.partition_rule_version)
return _msg;
}
inline void InsertRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
if (partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.InsertRequest.partition_rule_version)
}
// -------------------------------------------------------------------
// DeleteRequest
@@ -9247,6 +9392,91 @@ inline void DeleteRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.DeleteRequest.rows)
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
inline bool DeleteRequest::_internal_has_partition_rule_version() const {
return this != internal_default_instance() && _impl_.partition_rule_version_ != nullptr;
}
inline bool DeleteRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_version();
}
inline const ::greptime::v1::PartitionRuleVersion& DeleteRequest::_internal_partition_rule_version() const {
const ::greptime::v1::PartitionRuleVersion* p = _impl_.partition_rule_version_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::PartitionRuleVersion&>(
::greptime::v1::_PartitionRuleVersion_default_instance_);
}
inline const ::greptime::v1::PartitionRuleVersion& DeleteRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.DeleteRequest.partition_rule_version)
return _internal_partition_rule_version();
}
inline void DeleteRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.DeleteRequest.partition_rule_version)
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::release_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.DeleteRequest.partition_rule_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::_internal_mutable_partition_rule_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
}
return _impl_.partition_rule_version_;
}
inline ::greptime::v1::PartitionRuleVersion* DeleteRequest::mutable_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* _msg = _internal_mutable_partition_rule_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.DeleteRequest.partition_rule_version)
return _msg;
}
inline void DeleteRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
if (partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.DeleteRequest.partition_rule_version)
}
// -------------------------------------------------------------------
// QueryRequest
@@ -11996,6 +12226,91 @@ inline ::greptime::v1::ArrowIpc* BulkInsertRequest::mutable_arrow_ipc() {
return _msg;
}
// .greptime.v1.PartitionRuleVersion partition_rule_version = 3;
inline bool BulkInsertRequest::_internal_has_partition_rule_version() const {
return this != internal_default_instance() && _impl_.partition_rule_version_ != nullptr;
}
inline bool BulkInsertRequest::has_partition_rule_version() const {
return _internal_has_partition_rule_version();
}
inline const ::greptime::v1::PartitionRuleVersion& BulkInsertRequest::_internal_partition_rule_version() const {
const ::greptime::v1::PartitionRuleVersion* p = _impl_.partition_rule_version_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::PartitionRuleVersion&>(
::greptime::v1::_PartitionRuleVersion_default_instance_);
}
inline const ::greptime::v1::PartitionRuleVersion& BulkInsertRequest::partition_rule_version() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.BulkInsertRequest.partition_rule_version)
return _internal_partition_rule_version();
}
inline void BulkInsertRequest::unsafe_arena_set_allocated_partition_rule_version(
::greptime::v1::PartitionRuleVersion* partition_rule_version) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
_impl_.partition_rule_version_ = partition_rule_version;
if (partition_rule_version) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.BulkInsertRequest.partition_rule_version)
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::release_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::unsafe_arena_release_partition_rule_version() {
// @@protoc_insertion_point(field_release:greptime.v1.region.BulkInsertRequest.partition_rule_version)
::greptime::v1::PartitionRuleVersion* temp = _impl_.partition_rule_version_;
_impl_.partition_rule_version_ = nullptr;
return temp;
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::_internal_mutable_partition_rule_version() {
if (_impl_.partition_rule_version_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::PartitionRuleVersion>(GetArenaForAllocation());
_impl_.partition_rule_version_ = p;
}
return _impl_.partition_rule_version_;
}
inline ::greptime::v1::PartitionRuleVersion* BulkInsertRequest::mutable_partition_rule_version() {
::greptime::v1::PartitionRuleVersion* _msg = _internal_mutable_partition_rule_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.BulkInsertRequest.partition_rule_version)
return _msg;
}
inline void BulkInsertRequest::set_allocated_partition_rule_version(::greptime::v1::PartitionRuleVersion* partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partition_rule_version_);
}
if (partition_rule_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(partition_rule_version));
if (message_arena != submessage_arena) {
partition_rule_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, partition_rule_version, submessage_arena);
}
} else {
}
_impl_.partition_rule_version_ = partition_rule_version;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.BulkInsertRequest.partition_rule_version)
}
inline bool BulkInsertRequest::has_body() const {
return body_case() != BODY_NOT_SET;
}