feat: adds MergeScan plan node (#172)
* feat: adds dist_plan to substrait_extension * feat: adds table_names to CreateViewExpr * chore: style Co-authored-by: Jeremyhi <jiachun_feng@proton.me> * fix: update genearted code --------- Co-authored-by: Jeremyhi <jiachun_feng@proton.me>
This commit is contained in:
+125
-85
@@ -87,7 +87,8 @@ struct DropFlowExprDefaultTypeInternal {
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropFlowExprDefaultTypeInternal _DropFlowExpr_default_instance_;
|
||||
PROTOBUF_CONSTEXPR CreateViewExpr::CreateViewExpr(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
/*decltype(_impl_.table_names_)*/{}
|
||||
, /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.view_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.logical_plan_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
@@ -470,6 +471,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.logical_plan_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.create_if_not_exists_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.or_replace_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateViewExpr, _impl_.table_names_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropViewExpr, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -666,26 +668,26 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 26, -1, -1, sizeof(::greptime::v1::CreateFlowExpr)},
|
||||
{ 42, -1, -1, sizeof(::greptime::v1::DropFlowExpr)},
|
||||
{ 52, -1, -1, sizeof(::greptime::v1::CreateViewExpr)},
|
||||
{ 64, -1, -1, sizeof(::greptime::v1::DropViewExpr)},
|
||||
{ 75, 83, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
|
||||
{ 85, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
|
||||
{ 102, -1, -1, sizeof(::greptime::v1::AlterExpr)},
|
||||
{ 116, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
|
||||
{ 127, 135, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
|
||||
{ 137, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
|
||||
{ 147, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
|
||||
{ 157, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
|
||||
{ 166, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
||||
{ 173, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
||||
{ 180, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
|
||||
{ 187, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
||||
{ 194, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
||||
{ 202, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
|
||||
{ 211, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
||||
{ 218, -1, -1, sizeof(::greptime::v1::TableId)},
|
||||
{ 225, -1, -1, sizeof(::greptime::v1::FlowId)},
|
||||
{ 232, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
||||
{ 245, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
|
||||
{ 65, -1, -1, sizeof(::greptime::v1::DropViewExpr)},
|
||||
{ 76, 84, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
|
||||
{ 86, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
|
||||
{ 103, -1, -1, sizeof(::greptime::v1::AlterExpr)},
|
||||
{ 117, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
|
||||
{ 128, 136, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
|
||||
{ 138, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
|
||||
{ 148, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
|
||||
{ 158, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
|
||||
{ 167, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
||||
{ 174, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
||||
{ 181, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
|
||||
{ 188, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
||||
{ 195, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
||||
{ 203, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
|
||||
{ 212, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
||||
{ 219, -1, -1, sizeof(::greptime::v1::TableId)},
|
||||
{ 226, -1, -1, sizeof(::greptime::v1::FlowId)},
|
||||
{ 233, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
||||
{ 246, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -743,80 +745,81 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
|
||||
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n"
|
||||
"\014DropFlowExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tf"
|
||||
"low_name\030\002 \001(\t\022$\n\007flow_id\030\003 \001(\0132\023.grepti"
|
||||
"me.v1.FlowId\022\026\n\016drop_if_exists\030\005 \001(\010\"\226\001\n"
|
||||
"me.v1.FlowId\022\026\n\016drop_if_exists\030\005 \001(\010\"\303\001\n"
|
||||
"\016CreateViewExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n"
|
||||
"\013schema_name\030\002 \001(\t\022\021\n\tview_name\030\003 \001(\t\022\024\n"
|
||||
"\014logical_plan\030\004 \001(\014\022\034\n\024create_if_not_exi"
|
||||
"sts\030\005 \001(\010\022\022\n\nor_replace\030\006 \001(\010\"\213\001\n\014DropVi"
|
||||
"ewExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n"
|
||||
"ame\030\002 \001(\t\022\021\n\tview_name\030\003 \001(\t\022%\n\007view_id\030"
|
||||
"sts\030\005 \001(\010\022\022\n\nor_replace\030\006 \001(\010\022+\n\013table_n"
|
||||
"ames\030\007 \003(\0132\026.greptime.v1.TableName\"\213\001\n\014D"
|
||||
"ropViewExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sch"
|
||||
"ema_name\030\002 \001(\t\022\021\n\tview_name\030\003 \001(\t\022%\n\007vie"
|
||||
"w_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop"
|
||||
"_if_exists\030\005 \001(\010\"\207\003\n\017CreateTableExpr\022\024\n\014"
|
||||
"catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022"
|
||||
"\022\n\ntable_name\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022+\n\013col"
|
||||
"umn_defs\030\005 \003(\0132\026.greptime.v1.ColumnDef\022\022"
|
||||
"\n\ntime_index\030\006 \001(\t\022\024\n\014primary_keys\030\007 \003(\t"
|
||||
"\022\034\n\024create_if_not_exists\030\010 \001(\010\022E\n\rtable_"
|
||||
"options\030\t \003(\0132..greptime.v1.CreateTableE"
|
||||
"xpr.TableOptionsEntry\022&\n\010table_id\030\n \001(\0132"
|
||||
"\024.greptime.v1.TableId\022\016\n\006engine\030\014 \001(\t\0323\n"
|
||||
"\021TableOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
|
||||
"\030\002 \001(\t:\0028\001\"\245\002\n\tAlterExpr\022\024\n\014catalog_name"
|
||||
"\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_nam"
|
||||
"e\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\0132\027.greptime."
|
||||
"v1.AddColumnsH\000\0220\n\014drop_columns\030\005 \001(\0132\030."
|
||||
"greptime.v1.DropColumnsH\000\0220\n\014rename_tabl"
|
||||
"e\030\006 \001(\0132\030.greptime.v1.RenameTableH\000\022=\n\023c"
|
||||
"hange_column_types\030\007 \001(\0132\036.greptime.v1.C"
|
||||
"hangeColumnTypesH\000B\006\n\004kind\"\216\001\n\rDropTable"
|
||||
"Expr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_nam"
|
||||
"e\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030"
|
||||
"\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_e"
|
||||
"xists\030\005 \001(\010\"\207\003\n\017CreateTableExpr\022\024\n\014catal"
|
||||
"og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nta"
|
||||
"ble_name\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022+\n\013column_d"
|
||||
"efs\030\005 \003(\0132\026.greptime.v1.ColumnDef\022\022\n\ntim"
|
||||
"e_index\030\006 \001(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024c"
|
||||
"reate_if_not_exists\030\010 \001(\010\022E\n\rtable_optio"
|
||||
"ns\030\t \003(\0132..greptime.v1.CreateTableExpr.T"
|
||||
"ableOptionsEntry\022&\n\010table_id\030\n \001(\0132\024.gre"
|
||||
"ptime.v1.TableId\022\016\n\006engine\030\014 \001(\t\0323\n\021Tabl"
|
||||
"eOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
|
||||
"\t:\0028\001\"\245\002\n\tAlterExpr\022\024\n\014catalog_name\030\001 \001("
|
||||
"\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001"
|
||||
"(\t\022.\n\013add_columns\030\004 \001(\0132\027.greptime.v1.Ad"
|
||||
"dColumnsH\000\0220\n\014drop_columns\030\005 \001(\0132\030.grept"
|
||||
"ime.v1.DropColumnsH\000\0220\n\014rename_table\030\006 \001"
|
||||
"(\0132\030.greptime.v1.RenameTableH\000\022=\n\023change"
|
||||
"_column_types\030\007 \001(\0132\036.greptime.v1.Change"
|
||||
"ColumnTypesH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022"
|
||||
"xists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014ca"
|
||||
"talog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n"
|
||||
"\024create_if_not_exists\030\003 \001(\010\022=\n\007options\030\004"
|
||||
" \003(\0132,.greptime.v1.CreateDatabaseExpr.Op"
|
||||
"tionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022"
|
||||
"\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022"
|
||||
"\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001"
|
||||
"(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\013"
|
||||
"2\024.greptime.v1.TableId\022\026\n\016drop_if_exists"
|
||||
"\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog"
|
||||
"_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024crea"
|
||||
"te_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132"
|
||||
",.greptime.v1.CreateDatabaseExpr.Options"
|
||||
"Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
|
||||
"lue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014ca"
|
||||
"talog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n"
|
||||
"\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gr"
|
||||
"eptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n"
|
||||
"\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t"
|
||||
"\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+"
|
||||
"\n\013add_columns\030\001 \003(\0132\026.greptime.v1.AddCol"
|
||||
"umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013"
|
||||
"2\027.greptime.v1.DropColumn\"O\n\021ChangeColum"
|
||||
"nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr"
|
||||
"eptime.v1.ChangeColumnType\"%\n\013RenameTabl"
|
||||
"e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*"
|
||||
"\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD"
|
||||
"ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo"
|
||||
"lumnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013col"
|
||||
"umn_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.gr"
|
||||
"eptime.v1.ColumnDataType\022C\n\025target_type_"
|
||||
"extension\030\003 \001(\0132$.greptime.v1.ColumnData"
|
||||
"TypeExtension\"\032\n\nDropColumn\022\014\n\004name\030\001 \001("
|
||||
"\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id"
|
||||
"\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tda"
|
||||
"ta_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTy"
|
||||
"pe\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_const"
|
||||
"raint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.gre"
|
||||
"ptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@"
|
||||
"\n\022datatype_extension\030\007 \001(\0132$.greptime.v1"
|
||||
".ColumnDataTypeExtension\"\230\001\n\021AddColumnLo"
|
||||
"cation\022B\n\rlocation_type\030\001 \001(\0162+.greptime"
|
||||
".v1.AddColumnLocation.LocationType\022\031\n\021af"
|
||||
"ter_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n"
|
||||
"\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003D"
|
||||
"dlZ5github.com/GreptimeTeam/greptime-pro"
|
||||
"to/go/greptime/v1b\006proto3"
|
||||
"2\024.greptime.v1.TableId\"U\n\020DropDatabaseEx"
|
||||
"pr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030"
|
||||
"\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColu"
|
||||
"mns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.A"
|
||||
"ddColumn\"<\n\013DropColumns\022-\n\014drop_columns\030"
|
||||
"\001 \003(\0132\027.greptime.v1.DropColumn\"O\n\021Change"
|
||||
"ColumnTypes\022:\n\023change_column_types\030\001 \003(\013"
|
||||
"2\035.greptime.v1.ChangeColumnType\"%\n\013Renam"
|
||||
"eTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddCol"
|
||||
"umn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Co"
|
||||
"lumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1."
|
||||
"AddColumnLocation\"\236\001\n\020ChangeColumnType\022\023"
|
||||
"\n\013column_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\016"
|
||||
"2\033.greptime.v1.ColumnDataType\022C\n\025target_"
|
||||
"type_extension\030\003 \001(\0132$.greptime.v1.Colum"
|
||||
"nDataTypeExtension\"\032\n\nDropColumn\022\014\n\004name"
|
||||
"\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022"
|
||||
"\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022"
|
||||
".\n\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnD"
|
||||
"ataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_"
|
||||
"constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162"
|
||||
"\031.greptime.v1.SemanticType\022\017\n\007comment\030\006 "
|
||||
"\001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grepti"
|
||||
"me.v1.ColumnDataTypeExtension\"\230\001\n\021AddCol"
|
||||
"umnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gre"
|
||||
"ptime.v1.AddColumnLocation.LocationType\022"
|
||||
"\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTy"
|
||||
"pe\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime."
|
||||
"v1B\003DdlZ5github.com/GreptimeTeam/greptim"
|
||||
"e-proto/go/greptime/v1b\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
|
||||
false, false, 3705, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
|
||||
false, false, 3750, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
|
||||
"greptime/v1/ddl.proto",
|
||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 25,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
|
||||
@@ -2522,6 +2525,9 @@ class CreateViewExpr::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
void CreateViewExpr::clear_table_names() {
|
||||
_impl_.table_names_.Clear();
|
||||
}
|
||||
CreateViewExpr::CreateViewExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -2532,7 +2538,8 @@ CreateViewExpr::CreateViewExpr(const CreateViewExpr& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
CreateViewExpr* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.catalog_name_){}
|
||||
decltype(_impl_.table_names_){from._impl_.table_names_}
|
||||
, decltype(_impl_.catalog_name_){}
|
||||
, decltype(_impl_.schema_name_){}
|
||||
, decltype(_impl_.view_name_){}
|
||||
, decltype(_impl_.logical_plan_){}
|
||||
@@ -2584,7 +2591,8 @@ inline void CreateViewExpr::SharedCtor(
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.catalog_name_){}
|
||||
decltype(_impl_.table_names_){arena}
|
||||
, decltype(_impl_.catalog_name_){}
|
||||
, decltype(_impl_.schema_name_){}
|
||||
, decltype(_impl_.view_name_){}
|
||||
, decltype(_impl_.logical_plan_){}
|
||||
@@ -2621,6 +2629,7 @@ CreateViewExpr::~CreateViewExpr() {
|
||||
|
||||
inline void CreateViewExpr::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.table_names_.~RepeatedPtrField();
|
||||
_impl_.catalog_name_.Destroy();
|
||||
_impl_.schema_name_.Destroy();
|
||||
_impl_.view_name_.Destroy();
|
||||
@@ -2637,6 +2646,7 @@ void CreateViewExpr::Clear() {
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.table_names_.Clear();
|
||||
_impl_.catalog_name_.ClearToEmpty();
|
||||
_impl_.schema_name_.ClearToEmpty();
|
||||
_impl_.view_name_.ClearToEmpty();
|
||||
@@ -2708,6 +2718,19 @@ const char* CreateViewExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// repeated .greptime.v1.TableName table_names = 7;
|
||||
case 7:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
|
||||
ptr -= 1;
|
||||
do {
|
||||
ptr += 1;
|
||||
ptr = ctx->ParseMessage(_internal_add_table_names(), ptr);
|
||||
CHK_(ptr);
|
||||
if (!ctx->DataAvailable(ptr)) break;
|
||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -2785,6 +2808,14 @@ uint8_t* CreateViewExpr::_InternalSerialize(
|
||||
target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_or_replace(), target);
|
||||
}
|
||||
|
||||
// repeated .greptime.v1.TableName table_names = 7;
|
||||
for (unsigned i = 0,
|
||||
n = static_cast<unsigned>(this->_internal_table_names_size()); i < n; i++) {
|
||||
const auto& repfield = this->_internal_table_names(i);
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(7, repfield, repfield.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);
|
||||
@@ -2801,6 +2832,13 @@ size_t CreateViewExpr::ByteSizeLong() const {
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// repeated .greptime.v1.TableName table_names = 7;
|
||||
total_size += 1UL * this->_internal_table_names_size();
|
||||
for (const auto& msg : this->_impl_.table_names_) {
|
||||
total_size +=
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
||||
}
|
||||
|
||||
// string catalog_name = 1;
|
||||
if (!this->_internal_catalog_name().empty()) {
|
||||
total_size += 1 +
|
||||
@@ -2857,6 +2895,7 @@ void CreateViewExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
_this->_impl_.table_names_.MergeFrom(from._impl_.table_names_);
|
||||
if (!from._internal_catalog_name().empty()) {
|
||||
_this->_internal_set_catalog_name(from._internal_catalog_name());
|
||||
}
|
||||
@@ -2894,6 +2933,7 @@ void CreateViewExpr::InternalSwap(CreateViewExpr* other) {
|
||||
auto* lhs_arena = GetArenaForAllocation();
|
||||
auto* rhs_arena = other->GetArenaForAllocation();
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
_impl_.table_names_.InternalSwap(&other->_impl_.table_names_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&_impl_.catalog_name_, lhs_arena,
|
||||
&other->_impl_.catalog_name_, rhs_arena
|
||||
|
||||
@@ -1193,6 +1193,7 @@ class CreateViewExpr final :
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kTableNamesFieldNumber = 7,
|
||||
kCatalogNameFieldNumber = 1,
|
||||
kSchemaNameFieldNumber = 2,
|
||||
kViewNameFieldNumber = 3,
|
||||
@@ -1200,6 +1201,24 @@ class CreateViewExpr final :
|
||||
kCreateIfNotExistsFieldNumber = 5,
|
||||
kOrReplaceFieldNumber = 6,
|
||||
};
|
||||
// repeated .greptime.v1.TableName table_names = 7;
|
||||
int table_names_size() const;
|
||||
private:
|
||||
int _internal_table_names_size() const;
|
||||
public:
|
||||
void clear_table_names();
|
||||
::greptime::v1::TableName* mutable_table_names(int index);
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >*
|
||||
mutable_table_names();
|
||||
private:
|
||||
const ::greptime::v1::TableName& _internal_table_names(int index) const;
|
||||
::greptime::v1::TableName* _internal_add_table_names();
|
||||
public:
|
||||
const ::greptime::v1::TableName& table_names(int index) const;
|
||||
::greptime::v1::TableName* add_table_names();
|
||||
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >&
|
||||
table_names() const;
|
||||
|
||||
// string catalog_name = 1;
|
||||
void clear_catalog_name();
|
||||
const std::string& catalog_name() const;
|
||||
@@ -1282,6 +1301,7 @@ class CreateViewExpr final :
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName > table_names_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr view_name_;
|
||||
@@ -6488,6 +6508,43 @@ inline void CreateViewExpr::set_or_replace(bool value) {
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.CreateViewExpr.or_replace)
|
||||
}
|
||||
|
||||
// repeated .greptime.v1.TableName table_names = 7;
|
||||
inline int CreateViewExpr::_internal_table_names_size() const {
|
||||
return _impl_.table_names_.size();
|
||||
}
|
||||
inline int CreateViewExpr::table_names_size() const {
|
||||
return _internal_table_names_size();
|
||||
}
|
||||
inline ::greptime::v1::TableName* CreateViewExpr::mutable_table_names(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.CreateViewExpr.table_names)
|
||||
return _impl_.table_names_.Mutable(index);
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >*
|
||||
CreateViewExpr::mutable_table_names() {
|
||||
// @@protoc_insertion_point(field_mutable_list:greptime.v1.CreateViewExpr.table_names)
|
||||
return &_impl_.table_names_;
|
||||
}
|
||||
inline const ::greptime::v1::TableName& CreateViewExpr::_internal_table_names(int index) const {
|
||||
return _impl_.table_names_.Get(index);
|
||||
}
|
||||
inline const ::greptime::v1::TableName& CreateViewExpr::table_names(int index) const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.CreateViewExpr.table_names)
|
||||
return _internal_table_names(index);
|
||||
}
|
||||
inline ::greptime::v1::TableName* CreateViewExpr::_internal_add_table_names() {
|
||||
return _impl_.table_names_.Add();
|
||||
}
|
||||
inline ::greptime::v1::TableName* CreateViewExpr::add_table_names() {
|
||||
::greptime::v1::TableName* _add = _internal_add_table_names();
|
||||
// @@protoc_insertion_point(field_add:greptime.v1.CreateViewExpr.table_names)
|
||||
return _add;
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >&
|
||||
CreateViewExpr::table_names() const {
|
||||
// @@protoc_insertion_point(field_list:greptime.v1.CreateViewExpr.table_names)
|
||||
return _impl_.table_names_;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DropViewExpr
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated by the gRPC C++ plugin.
|
||||
// If you make any local change, they will be lost.
|
||||
// source: substrait_extension/dist_plan.proto
|
||||
|
||||
#include "substrait_extension/dist_plan.pb.h"
|
||||
#include "substrait_extension/dist_plan.grpc.pb.h"
|
||||
|
||||
#include <functional>
|
||||
#include <grpcpp/support/async_stream.h>
|
||||
#include <grpcpp/support/async_unary_call.h>
|
||||
#include <grpcpp/impl/channel_interface.h>
|
||||
#include <grpcpp/impl/client_unary_call.h>
|
||||
#include <grpcpp/support/client_callback.h>
|
||||
#include <grpcpp/support/message_allocator.h>
|
||||
#include <grpcpp/support/method_handler.h>
|
||||
#include <grpcpp/impl/rpc_service_method.h>
|
||||
#include <grpcpp/support/server_callback.h>
|
||||
#include <grpcpp/impl/codegen/server_callback_handlers.h>
|
||||
#include <grpcpp/server_context.h>
|
||||
#include <grpcpp/impl/service_type.h>
|
||||
#include <grpcpp/support/sync_stream.h>
|
||||
namespace substrait_extension {
|
||||
|
||||
} // namespace substrait_extension
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
// Generated by the gRPC C++ plugin.
|
||||
// If you make any local change, they will be lost.
|
||||
// source: substrait_extension/dist_plan.proto
|
||||
// Original file comments:
|
||||
// Copyright 2023 Greptime Team
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
#ifndef GRPC_substrait_5fextension_2fdist_5fplan_2eproto__INCLUDED
|
||||
#define GRPC_substrait_5fextension_2fdist_5fplan_2eproto__INCLUDED
|
||||
|
||||
#include "substrait_extension/dist_plan.pb.h"
|
||||
|
||||
#include <functional>
|
||||
#include <grpcpp/generic/async_generic_service.h>
|
||||
#include <grpcpp/support/async_stream.h>
|
||||
#include <grpcpp/support/async_unary_call.h>
|
||||
#include <grpcpp/support/client_callback.h>
|
||||
#include <grpcpp/client_context.h>
|
||||
#include <grpcpp/completion_queue.h>
|
||||
#include <grpcpp/support/message_allocator.h>
|
||||
#include <grpcpp/support/method_handler.h>
|
||||
#include <grpcpp/impl/codegen/proto_utils.h>
|
||||
#include <grpcpp/impl/rpc_method.h>
|
||||
#include <grpcpp/support/server_callback.h>
|
||||
#include <grpcpp/impl/codegen/server_callback_handlers.h>
|
||||
#include <grpcpp/server_context.h>
|
||||
#include <grpcpp/impl/service_type.h>
|
||||
#include <grpcpp/impl/codegen/status.h>
|
||||
#include <grpcpp/support/stub_options.h>
|
||||
#include <grpcpp/support/sync_stream.h>
|
||||
|
||||
namespace substrait_extension {
|
||||
|
||||
} // namespace substrait_extension
|
||||
|
||||
|
||||
#endif // GRPC_substrait_5fextension_2fdist_5fplan_2eproto__INCLUDED
|
||||
@@ -0,0 +1,320 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: substrait_extension/dist_plan.proto
|
||||
|
||||
#include "substrait_extension/dist_plan.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include <google/protobuf/wire_format_lite.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
|
||||
PROTOBUF_PRAGMA_INIT_SEG
|
||||
|
||||
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
|
||||
namespace _pbi = _pb::internal;
|
||||
|
||||
namespace substrait_extension {
|
||||
PROTOBUF_CONSTEXPR MergeScan::MergeScan(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.input_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.is_placeholder_)*/false
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct MergeScanDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR MergeScanDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~MergeScanDefaultTypeInternal() {}
|
||||
union {
|
||||
MergeScan _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MergeScanDefaultTypeInternal _MergeScan_default_instance_;
|
||||
} // namespace substrait_extension
|
||||
static ::_pb::Metadata file_level_metadata_substrait_5fextension_2fdist_5fplan_2eproto[1];
|
||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_substrait_5fextension_2fdist_5fplan_2eproto = nullptr;
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_substrait_5fextension_2fdist_5fplan_2eproto = nullptr;
|
||||
|
||||
const uint32_t TableStruct_substrait_5fextension_2fdist_5fplan_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::substrait_extension::MergeScan, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::substrait_extension::MergeScan, _impl_.input_),
|
||||
PROTOBUF_FIELD_OFFSET(::substrait_extension::MergeScan, _impl_.is_placeholder_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::substrait_extension::MergeScan)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::substrait_extension::_MergeScan_default_instance_._instance,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_substrait_5fextension_2fdist_5fplan_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
"\n#substrait_extension/dist_plan.proto\022\023s"
|
||||
"ubstrait_extension\"2\n\tMergeScan\022\r\n\005input"
|
||||
"\030\001 \001(\014\022\026\n\016is_placeholder\030\002 \001(\010B\?Z=github"
|
||||
".com/GreptimeTeam/greptime-proto/go/subs"
|
||||
"trait_extensionb\006proto3"
|
||||
;
|
||||
static ::_pbi::once_flag descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto = {
|
||||
false, false, 183, descriptor_table_protodef_substrait_5fextension_2fdist_5fplan_2eproto,
|
||||
"substrait_extension/dist_plan.proto",
|
||||
&descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_once, nullptr, 0, 1,
|
||||
schemas, file_default_instances, TableStruct_substrait_5fextension_2fdist_5fplan_2eproto::offsets,
|
||||
file_level_metadata_substrait_5fextension_2fdist_5fplan_2eproto, file_level_enum_descriptors_substrait_5fextension_2fdist_5fplan_2eproto,
|
||||
file_level_service_descriptors_substrait_5fextension_2fdist_5fplan_2eproto,
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_getter() {
|
||||
return &descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto;
|
||||
}
|
||||
|
||||
// Force running AddDescriptors() at dynamic initialization time.
|
||||
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_substrait_5fextension_2fdist_5fplan_2eproto(&descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto);
|
||||
namespace substrait_extension {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class MergeScan::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
MergeScan::MergeScan(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:substrait_extension.MergeScan)
|
||||
}
|
||||
MergeScan::MergeScan(const MergeScan& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
MergeScan* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.input_){}
|
||||
, decltype(_impl_.is_placeholder_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_impl_.input_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.input_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (!from._internal_input().empty()) {
|
||||
_this->_impl_.input_.Set(from._internal_input(),
|
||||
_this->GetArenaForAllocation());
|
||||
}
|
||||
_this->_impl_.is_placeholder_ = from._impl_.is_placeholder_;
|
||||
// @@protoc_insertion_point(copy_constructor:substrait_extension.MergeScan)
|
||||
}
|
||||
|
||||
inline void MergeScan::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.input_){}
|
||||
, decltype(_impl_.is_placeholder_){false}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
_impl_.input_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.input_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
}
|
||||
|
||||
MergeScan::~MergeScan() {
|
||||
// @@protoc_insertion_point(destructor:substrait_extension.MergeScan)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void MergeScan::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.input_.Destroy();
|
||||
}
|
||||
|
||||
void MergeScan::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void MergeScan::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:substrait_extension.MergeScan)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.input_.ClearToEmpty();
|
||||
_impl_.is_placeholder_ = false;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* MergeScan::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// bytes input = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
auto str = _internal_mutable_input();
|
||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// bool is_placeholder = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||
_impl_.is_placeholder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* MergeScan::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:substrait_extension.MergeScan)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// bytes input = 1;
|
||||
if (!this->_internal_input().empty()) {
|
||||
target = stream->WriteBytesMaybeAliased(
|
||||
1, this->_internal_input(), target);
|
||||
}
|
||||
|
||||
// bool is_placeholder = 2;
|
||||
if (this->_internal_is_placeholder() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_placeholder(), target);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:substrait_extension.MergeScan)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t MergeScan::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:substrait_extension.MergeScan)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// bytes input = 1;
|
||||
if (!this->_internal_input().empty()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||
this->_internal_input());
|
||||
}
|
||||
|
||||
// bool is_placeholder = 2;
|
||||
if (this->_internal_is_placeholder() != 0) {
|
||||
total_size += 1 + 1;
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MergeScan::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
MergeScan::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MergeScan::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void MergeScan::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<MergeScan*>(&to_msg);
|
||||
auto& from = static_cast<const MergeScan&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:substrait_extension.MergeScan)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (!from._internal_input().empty()) {
|
||||
_this->_internal_set_input(from._internal_input());
|
||||
}
|
||||
if (from._internal_is_placeholder() != 0) {
|
||||
_this->_internal_set_is_placeholder(from._internal_is_placeholder());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void MergeScan::CopyFrom(const MergeScan& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:substrait_extension.MergeScan)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool MergeScan::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void MergeScan::InternalSwap(MergeScan* other) {
|
||||
using std::swap;
|
||||
auto* lhs_arena = GetArenaForAllocation();
|
||||
auto* rhs_arena = other->GetArenaForAllocation();
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&_impl_.input_, lhs_arena,
|
||||
&other->_impl_.input_, rhs_arena
|
||||
);
|
||||
swap(_impl_.is_placeholder_, other->_impl_.is_placeholder_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata MergeScan::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_getter, &descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_once,
|
||||
file_level_metadata_substrait_5fextension_2fdist_5fplan_2eproto[0]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace substrait_extension
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::substrait_extension::MergeScan*
|
||||
Arena::CreateMaybeMessage< ::substrait_extension::MergeScan >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::substrait_extension::MergeScan >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
@@ -0,0 +1,313 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: substrait_extension/dist_plan.proto
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_substrait_5fextension_2fdist_5fplan_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_substrait_5fextension_2fdist_5fplan_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3021000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
#endif
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/arena.h>
|
||||
#include <google/protobuf/arenastring.h>
|
||||
#include <google/protobuf/generated_message_util.h>
|
||||
#include <google/protobuf/metadata_lite.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/message.h>
|
||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_substrait_5fextension_2fdist_5fplan_2eproto
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
namespace internal {
|
||||
class AnyMetadata;
|
||||
} // namespace internal
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct_substrait_5fextension_2fdist_5fplan_2eproto {
|
||||
static const uint32_t offsets[];
|
||||
};
|
||||
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto;
|
||||
namespace substrait_extension {
|
||||
class MergeScan;
|
||||
struct MergeScanDefaultTypeInternal;
|
||||
extern MergeScanDefaultTypeInternal _MergeScan_default_instance_;
|
||||
} // namespace substrait_extension
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::substrait_extension::MergeScan* Arena::CreateMaybeMessage<::substrait_extension::MergeScan>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace substrait_extension {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class MergeScan final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait_extension.MergeScan) */ {
|
||||
public:
|
||||
inline MergeScan() : MergeScan(nullptr) {}
|
||||
~MergeScan() override;
|
||||
explicit PROTOBUF_CONSTEXPR MergeScan(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
MergeScan(const MergeScan& from);
|
||||
MergeScan(MergeScan&& from) noexcept
|
||||
: MergeScan() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline MergeScan& operator=(const MergeScan& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline MergeScan& operator=(MergeScan&& from) noexcept {
|
||||
if (this == &from) return *this;
|
||||
if (GetOwningArena() == from.GetOwningArena()
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
&& GetOwningArena() != nullptr
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
) {
|
||||
InternalSwap(&from);
|
||||
} else {
|
||||
CopyFrom(from);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
||||
return GetDescriptor();
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
||||
return default_instance().GetMetadata().descriptor;
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
||||
return default_instance().GetMetadata().reflection;
|
||||
}
|
||||
static const MergeScan& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const MergeScan* internal_default_instance() {
|
||||
return reinterpret_cast<const MergeScan*>(
|
||||
&_MergeScan_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(MergeScan& a, MergeScan& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(MergeScan* other) {
|
||||
if (other == this) return;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
if (GetOwningArena() != nullptr &&
|
||||
GetOwningArena() == other->GetOwningArena()) {
|
||||
#else // PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
if (GetOwningArena() == other->GetOwningArena()) {
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
||||
}
|
||||
}
|
||||
void UnsafeArenaSwap(MergeScan* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
MergeScan* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<MergeScan>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const MergeScan& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const MergeScan& from) {
|
||||
MergeScan::MergeImpl(*this, from);
|
||||
}
|
||||
private:
|
||||
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
|
||||
public:
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
||||
uint8_t* _InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
||||
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const final;
|
||||
void InternalSwap(MergeScan* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "substrait_extension.MergeScan";
|
||||
}
|
||||
protected:
|
||||
explicit MergeScan(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
public:
|
||||
|
||||
static const ClassData _class_data_;
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kInputFieldNumber = 1,
|
||||
kIsPlaceholderFieldNumber = 2,
|
||||
};
|
||||
// bytes input = 1;
|
||||
void clear_input();
|
||||
const std::string& input() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_input(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_input();
|
||||
PROTOBUF_NODISCARD std::string* release_input();
|
||||
void set_allocated_input(std::string* input);
|
||||
private:
|
||||
const std::string& _internal_input() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_input(const std::string& value);
|
||||
std::string* _internal_mutable_input();
|
||||
public:
|
||||
|
||||
// bool is_placeholder = 2;
|
||||
void clear_is_placeholder();
|
||||
bool is_placeholder() const;
|
||||
void set_is_placeholder(bool value);
|
||||
private:
|
||||
bool _internal_is_placeholder() const;
|
||||
void _internal_set_is_placeholder(bool value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:substrait_extension.MergeScan)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr input_;
|
||||
bool is_placeholder_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_substrait_5fextension_2fdist_5fplan_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// MergeScan
|
||||
|
||||
// bytes input = 1;
|
||||
inline void MergeScan::clear_input() {
|
||||
_impl_.input_.ClearToEmpty();
|
||||
}
|
||||
inline const std::string& MergeScan::input() const {
|
||||
// @@protoc_insertion_point(field_get:substrait_extension.MergeScan.input)
|
||||
return _internal_input();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void MergeScan::set_input(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.input_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:substrait_extension.MergeScan.input)
|
||||
}
|
||||
inline std::string* MergeScan::mutable_input() {
|
||||
std::string* _s = _internal_mutable_input();
|
||||
// @@protoc_insertion_point(field_mutable:substrait_extension.MergeScan.input)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& MergeScan::_internal_input() const {
|
||||
return _impl_.input_.Get();
|
||||
}
|
||||
inline void MergeScan::_internal_set_input(const std::string& value) {
|
||||
|
||||
_impl_.input_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* MergeScan::_internal_mutable_input() {
|
||||
|
||||
return _impl_.input_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* MergeScan::release_input() {
|
||||
// @@protoc_insertion_point(field_release:substrait_extension.MergeScan.input)
|
||||
return _impl_.input_.Release();
|
||||
}
|
||||
inline void MergeScan::set_allocated_input(std::string* input) {
|
||||
if (input != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.input_.SetAllocated(input, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.input_.IsDefault()) {
|
||||
_impl_.input_.Set("", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:substrait_extension.MergeScan.input)
|
||||
}
|
||||
|
||||
// bool is_placeholder = 2;
|
||||
inline void MergeScan::clear_is_placeholder() {
|
||||
_impl_.is_placeholder_ = false;
|
||||
}
|
||||
inline bool MergeScan::_internal_is_placeholder() const {
|
||||
return _impl_.is_placeholder_;
|
||||
}
|
||||
inline bool MergeScan::is_placeholder() const {
|
||||
// @@protoc_insertion_point(field_get:substrait_extension.MergeScan.is_placeholder)
|
||||
return _internal_is_placeholder();
|
||||
}
|
||||
inline void MergeScan::_internal_set_is_placeholder(bool value) {
|
||||
|
||||
_impl_.is_placeholder_ = value;
|
||||
}
|
||||
inline void MergeScan::set_is_placeholder(bool value) {
|
||||
_internal_set_is_placeholder(value);
|
||||
// @@protoc_insertion_point(field_set:substrait_extension.MergeScan.is_placeholder)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace substrait_extension
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_substrait_5fextension_2fdist_5fplan_2eproto
|
||||
Reference in New Issue
Block a user