feat: flow add eval interval (#273)

* feat: create flow eval interval

Signed-off-by: discord9 <discord9@163.com>

* fix: eval interval

Signed-off-by: discord9 <discord9@163.com>

* chore: make all

Signed-off-by: discord9 <discord9@163.com>

* fix: flow create request

Signed-off-by: discord9 <discord9@163.com>

* chore: make all

Signed-off-by: discord9 <discord9@163.com>

* chore: fmt

Signed-off-by: discord9 <discord9@163.com>

---------

Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
discord9
2025-08-27 16:21:27 +08:00
committed by GitHub
parent df2bb74b59
commit 66eb089afa
15 changed files with 2513 additions and 802 deletions
+271 -66
View File
@@ -252,6 +252,19 @@ struct ExpireAfterDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExpireAfterDefaultTypeInternal _ExpireAfter_default_instance_;
PROTOBUF_CONSTEXPR EvalInterval::EvalInterval(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.seconds_)*/int64_t{0}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct EvalIntervalDefaultTypeInternal {
PROTOBUF_CONSTEXPR EvalIntervalDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~EvalIntervalDefaultTypeInternal() {}
union {
EvalInterval _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EvalIntervalDefaultTypeInternal _EvalInterval_default_instance_;
PROTOBUF_CONSTEXPR FlightMetadata::FlightMetadata(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.affected_rows_)*/nullptr
@@ -405,7 +418,7 @@ struct ArrowIpcDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowIpcDefaultTypeInternal _ArrowIpc_default_instance_;
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[28];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[29];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[4];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
@@ -560,6 +573,13 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::ExpireAfter, _impl_.value_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::EvalInterval, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::EvalInterval, _impl_.seconds_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
@@ -670,17 +690,18 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 128, -1, -1, sizeof(::greptime::v1::AffectedRows)},
{ 135, -1, -1, sizeof(::greptime::v1::Metrics)},
{ 142, -1, -1, sizeof(::greptime::v1::ExpireAfter)},
{ 149, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
{ 157, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
{ 166, -1, -1, sizeof(::greptime::v1::TimeRange)},
{ 174, -1, -1, sizeof(::greptime::v1::TimeRanges)},
{ 182, -1, -1, sizeof(::greptime::v1::Decimal128)},
{ 190, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
{ 200, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
{ 208, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)},
{ 215, 223, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)},
{ 225, -1, -1, sizeof(::greptime::v1::ColumnOptions)},
{ 232, -1, -1, sizeof(::greptime::v1::ArrowIpc)},
{ 149, -1, -1, sizeof(::greptime::v1::EvalInterval)},
{ 156, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
{ 164, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
{ 173, -1, -1, sizeof(::greptime::v1::TimeRange)},
{ 181, -1, -1, sizeof(::greptime::v1::TimeRanges)},
{ 189, -1, -1, sizeof(::greptime::v1::Decimal128)},
{ 197, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
{ 207, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
{ 215, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)},
{ 222, 230, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)},
{ 232, -1, -1, sizeof(::greptime::v1::ColumnOptions)},
{ 239, -1, -1, sizeof(::greptime::v1::ArrowIpc)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -701,6 +722,7 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_AffectedRows_default_instance_._instance,
&::greptime::v1::_Metrics_default_instance_._instance,
&::greptime::v1::_ExpireAfter_default_instance_._instance,
&::greptime::v1::_EvalInterval_default_instance_._instance,
&::greptime::v1::_FlightMetadata_default_instance_._instance,
&::greptime::v1::_IntervalMonthDayNano_default_instance_._instance,
&::greptime::v1::_TimeRange_default_instance_._instance,
@@ -749,53 +771,54 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
"\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name"
"\030\003 \001(\t\"\035\n\014AffectedRows\022\r\n\005value\030\001 \001(\r\"\032\n"
"\007Metrics\022\017\n\007metrics\030\001 \001(\014\"\034\n\013ExpireAfter"
"\022\r\n\005value\030\001 \001(\003\"i\n\016FlightMetadata\0220\n\raff"
"ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR"
"ows\022%\n\007metrics\030\002 \001(\0132\024.greptime.v1.Metri"
"cs\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 \001"
"(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"\'\n"
"\tTimeRange\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\"c"
"\n\nTimeRanges\022(\n\ttime_unit\030\001 \001(\0162\025.grepti"
"me.v1.TimeUnit\022+\n\013time_ranges\030\002 \003(\0132\026.gr"
"eptime.v1.TimeRange\"$\n\nDecimal128\022\n\n\002hi\030"
"\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExte"
"nsion\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v"
"1.DecimalTypeExtensionH\000\0223\n\tjson_type\030\002 "
"\001(\0162\036.greptime.v1.JsonTypeExtensionH\000\0227\n"
"\013vector_type\030\003 \001(\0132 .greptime.v1.VectorT"
"ypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTyp"
"eExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002"
" \001(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r"
"\"y\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.gre"
"ptime.v1.ColumnOptions.OptionsEntry\032.\n\014O"
"ptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
"\0028\001\"@\n\010ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n\013data_"
"header\030\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014Semanti"
"cType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002"
"*\354\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8"
"\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005U"
"INT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64"
"\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013"
"\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020"
"TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISEC"
"OND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIME"
"STAMP_NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020T"
"IME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022"
"\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MO"
"NTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL"
"_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSO"
"N\020\037\022\n\n\006VECTOR\020 *H\n\010TimeUnit\022\017\n\013MILLISECO"
"ND\020\000\022\n\n\006SECOND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNAN"
"OSECOND\020\003*$\n\021JsonTypeExtension\022\017\n\013JSON_B"
"INARY\020\000BO\n\016io.greptime.v1B\006CommonZ5githu"
"b.com/GreptimeTeam/greptime-proto/go/gre"
"ptime/v1b\006proto3"
"\022\r\n\005value\030\001 \001(\003\"\037\n\014EvalInterval\022\017\n\007secon"
"ds\030\001 \001(\003\"i\n\016FlightMetadata\0220\n\raffected_r"
"ows\030\001 \001(\0132\031.greptime.v1.AffectedRows\022%\n\007"
"metrics\030\002 \001(\0132\024.greptime.v1.Metrics\"I\n\024I"
"ntervalMonthDayNano\022\016\n\006months\030\001 \001(\005\022\014\n\004d"
"ays\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"\'\n\tTimeRa"
"nge\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\"c\n\nTimeR"
"anges\022(\n\ttime_unit\030\001 \001(\0162\025.greptime.v1.T"
"imeUnit\022+\n\013time_ranges\030\002 \003(\0132\026.greptime."
"v1.TimeRange\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n"
"\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExtension\0229"
"\n\014decimal_type\030\001 \001(\0132!.greptime.v1.Decim"
"alTypeExtensionH\000\0223\n\tjson_type\030\002 \001(\0162\036.g"
"reptime.v1.JsonTypeExtensionH\000\0227\n\013vector"
"_type\030\003 \001(\0132 .greptime.v1.VectorTypeExte"
"nsionH\000B\n\n\010type_ext\"8\n\024DecimalTypeExtens"
"ion\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"\n"
"\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r\"y\n\rCol"
"umnOptions\0228\n\007options\030\001 \003(\0132\'.greptime.v"
"1.ColumnOptions.OptionsEntry\032.\n\014OptionsE"
"ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\010"
"ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n\013data_header\030"
"\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014SemanticType\022\007"
"\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\354\003\n\016Co"
"lumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005I"
"NT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022"
"\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007F"
"LOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STR"
"ING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTA"
"MP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031"
"\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_N"
"ANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MIL"
"LISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME"
"_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025"
"\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH_"
"DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006"
"VECTOR\020 *H\n\010TimeUnit\022\017\n\013MILLISECOND\020\000\022\n\n"
"\006SECOND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNANOSECOND"
"\020\003*$\n\021JsonTypeExtension\022\017\n\013JSON_BINARY\020\000"
"BO\n\016io.greptime.v1B\006CommonZ5github.com/G"
"reptimeTeam/greptime-proto/go/greptime/v"
"1b\006proto3"
;
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
false, false, 2976, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
false, false, 3009, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
"greptime/v1/common.proto",
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 28,
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 29,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto,
file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto,
@@ -4373,6 +4396,184 @@ void ExpireAfter::InternalSwap(ExpireAfter* other) {
// ===================================================================
class EvalInterval::_Internal {
public:
};
EvalInterval::EvalInterval(::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:greptime.v1.EvalInterval)
}
EvalInterval::EvalInterval(const EvalInterval& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
EvalInterval* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.seconds_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.seconds_ = from._impl_.seconds_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.EvalInterval)
}
inline void EvalInterval::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.seconds_){int64_t{0}}
, /*decltype(_impl_._cached_size_)*/{}
};
}
EvalInterval::~EvalInterval() {
// @@protoc_insertion_point(destructor:greptime.v1.EvalInterval)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void EvalInterval::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void EvalInterval::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void EvalInterval::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.EvalInterval)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.seconds_ = int64_t{0};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* EvalInterval::_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) {
// int64 seconds = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.seconds_ = ::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* EvalInterval::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.EvalInterval)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// int64 seconds = 1;
if (this->_internal_seconds() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_seconds(), 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:greptime.v1.EvalInterval)
return target;
}
size_t EvalInterval::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.EvalInterval)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int64 seconds = 1;
if (this->_internal_seconds() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_seconds());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EvalInterval::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
EvalInterval::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EvalInterval::GetClassData() const { return &_class_data_; }
void EvalInterval::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<EvalInterval*>(&to_msg);
auto& from = static_cast<const EvalInterval&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.EvalInterval)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_seconds() != 0) {
_this->_internal_set_seconds(from._internal_seconds());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void EvalInterval::CopyFrom(const EvalInterval& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.EvalInterval)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool EvalInterval::IsInitialized() const {
return true;
}
void EvalInterval::InternalSwap(EvalInterval* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.seconds_, other->_impl_.seconds_);
}
::PROTOBUF_NAMESPACE_ID::Metadata EvalInterval::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[17]);
}
// ===================================================================
class FlightMetadata::_Internal {
public:
static const ::greptime::v1::AffectedRows& affected_rows(const FlightMetadata* msg);
@@ -4607,7 +4808,7 @@ void FlightMetadata::InternalSwap(FlightMetadata* other) {
::PROTOBUF_NAMESPACE_ID::Metadata FlightMetadata::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[17]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[18]);
}
// ===================================================================
@@ -4842,7 +5043,7 @@ void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) {
::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[18]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[19]);
}
// ===================================================================
@@ -5053,7 +5254,7 @@ void TimeRange::InternalSwap(TimeRange* other) {
::PROTOBUF_NAMESPACE_ID::Metadata TimeRange::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[19]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[20]);
}
// ===================================================================
@@ -5268,7 +5469,7 @@ void TimeRanges::InternalSwap(TimeRanges* other) {
::PROTOBUF_NAMESPACE_ID::Metadata TimeRanges::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[20]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[21]);
}
// ===================================================================
@@ -5479,7 +5680,7 @@ void Decimal128::InternalSwap(Decimal128* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[21]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[22]);
}
// ===================================================================
@@ -5818,7 +6019,7 @@ void ColumnDataTypeExtension::InternalSwap(ColumnDataTypeExtension* other) {
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[22]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[23]);
}
// ===================================================================
@@ -6029,7 +6230,7 @@ void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) {
::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[23]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[24]);
}
// ===================================================================
@@ -6207,7 +6408,7 @@ void VectorTypeExtension::InternalSwap(VectorTypeExtension* other) {
::PROTOBUF_NAMESPACE_ID::Metadata VectorTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[24]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[25]);
}
// ===================================================================
@@ -6221,7 +6422,7 @@ void ColumnOptions_OptionsEntry_DoNotUse::MergeFrom(const ColumnOptions_OptionsE
::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions_OptionsEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[25]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[26]);
}
// ===================================================================
@@ -6440,7 +6641,7 @@ void ColumnOptions::InternalSwap(ColumnOptions* other) {
::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[26]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[27]);
}
// ===================================================================
@@ -6728,7 +6929,7 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) {
::PROTOBUF_NAMESPACE_ID::Metadata ArrowIpc::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[27]);
file_level_metadata_greptime_2fv1_2fcommon_2eproto[28]);
}
// @@protoc_insertion_point(namespace_scope)
@@ -6803,6 +7004,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ExpireAfter*
Arena::CreateMaybeMessage< ::greptime::v1::ExpireAfter >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::ExpireAfter >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::EvalInterval*
Arena::CreateMaybeMessage< ::greptime::v1::EvalInterval >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::EvalInterval >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::FlightMetadata*
Arena::CreateMaybeMessage< ::greptime::v1::FlightMetadata >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::FlightMetadata >(arena);
+188 -10
View File
@@ -77,6 +77,9 @@ extern Decimal128DefaultTypeInternal _Decimal128_default_instance_;
class DecimalTypeExtension;
struct DecimalTypeExtensionDefaultTypeInternal;
extern DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_;
class EvalInterval;
struct EvalIntervalDefaultTypeInternal;
extern EvalIntervalDefaultTypeInternal _EvalInterval_default_instance_;
class ExpireAfter;
struct ExpireAfterDefaultTypeInternal;
extern ExpireAfterDefaultTypeInternal _ExpireAfter_default_instance_;
@@ -146,6 +149,7 @@ template<> ::greptime::v1::ColumnOptions* Arena::CreateMaybeMessage<::greptime::
template<> ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::Decimal128* Arena::CreateMaybeMessage<::greptime::v1::Decimal128>(Arena*);
template<> ::greptime::v1::DecimalTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::DecimalTypeExtension>(Arena*);
template<> ::greptime::v1::EvalInterval* Arena::CreateMaybeMessage<::greptime::v1::EvalInterval>(Arena*);
template<> ::greptime::v1::ExpireAfter* Arena::CreateMaybeMessage<::greptime::v1::ExpireAfter>(Arena*);
template<> ::greptime::v1::ExplainOptions* Arena::CreateMaybeMessage<::greptime::v1::ExplainOptions>(Arena*);
template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*);
@@ -2720,6 +2724,154 @@ class ExpireAfter final :
};
// -------------------------------------------------------------------
class EvalInterval final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.EvalInterval) */ {
public:
inline EvalInterval() : EvalInterval(nullptr) {}
~EvalInterval() override;
explicit PROTOBUF_CONSTEXPR EvalInterval(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
EvalInterval(const EvalInterval& from);
EvalInterval(EvalInterval&& from) noexcept
: EvalInterval() {
*this = ::std::move(from);
}
inline EvalInterval& operator=(const EvalInterval& from) {
CopyFrom(from);
return *this;
}
inline EvalInterval& operator=(EvalInterval&& 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 EvalInterval& default_instance() {
return *internal_default_instance();
}
static inline const EvalInterval* internal_default_instance() {
return reinterpret_cast<const EvalInterval*>(
&_EvalInterval_default_instance_);
}
static constexpr int kIndexInFileMessages =
17;
friend void swap(EvalInterval& a, EvalInterval& b) {
a.Swap(&b);
}
inline void Swap(EvalInterval* 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(EvalInterval* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
EvalInterval* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<EvalInterval>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const EvalInterval& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const EvalInterval& from) {
EvalInterval::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(EvalInterval* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.EvalInterval";
}
protected:
explicit EvalInterval(::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 {
kSecondsFieldNumber = 1,
};
// int64 seconds = 1;
void clear_seconds();
int64_t seconds() const;
void set_seconds(int64_t value);
private:
int64_t _internal_seconds() const;
void _internal_set_seconds(int64_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.EvalInterval)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
int64_t seconds_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class FlightMetadata final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.FlightMetadata) */ {
public:
@@ -2768,7 +2920,7 @@ class FlightMetadata final :
&_FlightMetadata_default_instance_);
}
static constexpr int kIndexInFileMessages =
17;
18;
friend void swap(FlightMetadata& a, FlightMetadata& b) {
a.Swap(&b);
@@ -2945,7 +3097,7 @@ class IntervalMonthDayNano final :
&_IntervalMonthDayNano_default_instance_);
}
static constexpr int kIndexInFileMessages =
18;
19;
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
a.Swap(&b);
@@ -3115,7 +3267,7 @@ class TimeRange final :
&_TimeRange_default_instance_);
}
static constexpr int kIndexInFileMessages =
19;
20;
friend void swap(TimeRange& a, TimeRange& b) {
a.Swap(&b);
@@ -3274,7 +3426,7 @@ class TimeRanges final :
&_TimeRanges_default_instance_);
}
static constexpr int kIndexInFileMessages =
20;
21;
friend void swap(TimeRanges& a, TimeRanges& b) {
a.Swap(&b);
@@ -3442,7 +3594,7 @@ class Decimal128 final :
&_Decimal128_default_instance_);
}
static constexpr int kIndexInFileMessages =
21;
22;
friend void swap(Decimal128& a, Decimal128& b) {
a.Swap(&b);
@@ -3608,7 +3760,7 @@ class ColumnDataTypeExtension final :
&_ColumnDataTypeExtension_default_instance_);
}
static constexpr int kIndexInFileMessages =
22;
23;
friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) {
a.Swap(&b);
@@ -3814,7 +3966,7 @@ class DecimalTypeExtension final :
&_DecimalTypeExtension_default_instance_);
}
static constexpr int kIndexInFileMessages =
23;
24;
friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) {
a.Swap(&b);
@@ -3973,7 +4125,7 @@ class VectorTypeExtension final :
&_VectorTypeExtension_default_instance_);
}
static constexpr int kIndexInFileMessages =
24;
25;
friend void swap(VectorTypeExtension& a, VectorTypeExtension& b) {
a.Swap(&b);
@@ -4149,7 +4301,7 @@ class ColumnOptions final :
&_ColumnOptions_default_instance_);
}
static constexpr int kIndexInFileMessages =
26;
27;
friend void swap(ColumnOptions& a, ColumnOptions& b) {
a.Swap(&b);
@@ -4312,7 +4464,7 @@ class ArrowIpc final :
&_ArrowIpc_default_instance_);
}
static constexpr int kIndexInFileMessages =
27;
28;
friend void swap(ArrowIpc& a, ArrowIpc& b) {
a.Swap(&b);
@@ -5999,6 +6151,30 @@ inline void ExpireAfter::set_value(int64_t value) {
// -------------------------------------------------------------------
// EvalInterval
// int64 seconds = 1;
inline void EvalInterval::clear_seconds() {
_impl_.seconds_ = int64_t{0};
}
inline int64_t EvalInterval::_internal_seconds() const {
return _impl_.seconds_;
}
inline int64_t EvalInterval::seconds() const {
// @@protoc_insertion_point(field_get:greptime.v1.EvalInterval.seconds)
return _internal_seconds();
}
inline void EvalInterval::_internal_set_seconds(int64_t value) {
_impl_.seconds_ = value;
}
inline void EvalInterval::set_seconds(int64_t value) {
_internal_set_seconds(value);
// @@protoc_insertion_point(field_set:greptime.v1.EvalInterval.seconds)
}
// -------------------------------------------------------------------
// FlightMetadata
// .greptime.v1.AffectedRows affected_rows = 1;
@@ -6910,6 +7086,8 @@ inline void ArrowIpc::set_allocated_payload(std::string* payload) {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+255 -205
View File
@@ -57,6 +57,7 @@ PROTOBUF_CONSTEXPR CreateFlowExpr::CreateFlowExpr(
, /*decltype(_impl_.sql_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.sink_table_name_)*/nullptr
, /*decltype(_impl_.expire_after_)*/nullptr
, /*decltype(_impl_.eval_interval_)*/nullptr
, /*decltype(_impl_.or_replace_)*/false
, /*decltype(_impl_.create_if_not_exists_)*/false
, /*decltype(_impl_._cached_size_)*/{}} {}
@@ -828,6 +829,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.or_replace_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.create_if_not_exists_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.expire_after_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.eval_interval_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.comment_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.sql_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.flow_options_),
@@ -1295,55 +1297,55 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 0, -1, -1, sizeof(::greptime::v1::DdlRequest)},
{ 17, 25, -1, sizeof(::greptime::v1::CreateFlowExpr_FlowOptionsEntry_DoNotUse)},
{ 27, -1, -1, sizeof(::greptime::v1::CreateFlowExpr)},
{ 43, -1, -1, sizeof(::greptime::v1::DropFlowExpr)},
{ 53, -1, -1, sizeof(::greptime::v1::CreateViewExpr)},
{ 69, -1, -1, sizeof(::greptime::v1::DropViewExpr)},
{ 80, 88, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
{ 90, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
{ 107, -1, -1, sizeof(::greptime::v1::AlterTableExpr)},
{ 129, -1, -1, sizeof(::greptime::v1::DropDefault)},
{ 136, -1, -1, sizeof(::greptime::v1::SetIndexes)},
{ 143, -1, -1, sizeof(::greptime::v1::UnsetIndexes)},
{ 150, -1, -1, sizeof(::greptime::v1::SetDefault)},
{ 158, -1, -1, sizeof(::greptime::v1::SetIndex)},
{ 168, -1, -1, sizeof(::greptime::v1::UnsetIndex)},
{ 178, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
{ 189, 197, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
{ 199, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 209, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 220, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
{ 229, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 236, -1, -1, sizeof(::greptime::v1::DropDefaults)},
{ 243, -1, -1, sizeof(::greptime::v1::SetDefaults)},
{ 250, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 257, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)},
{ 264, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 271, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 280, -1, -1, sizeof(::greptime::v1::ModifyColumnType)},
{ 289, -1, -1, sizeof(::greptime::v1::Option)},
{ 297, -1, -1, sizeof(::greptime::v1::SetTableOptions)},
{ 304, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)},
{ 311, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 318, -1, -1, sizeof(::greptime::v1::TableId)},
{ 325, -1, -1, sizeof(::greptime::v1::FlowId)},
{ 332, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 346, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
{ 354, -1, -1, sizeof(::greptime::v1::SetFulltext)},
{ 367, -1, -1, sizeof(::greptime::v1::UnsetFulltext)},
{ 374, -1, -1, sizeof(::greptime::v1::SetInverted)},
{ 381, -1, -1, sizeof(::greptime::v1::UnsetInverted)},
{ 388, -1, -1, sizeof(::greptime::v1::SetSkipping)},
{ 399, -1, -1, sizeof(::greptime::v1::UnsetSkipping)},
{ 406, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)},
{ 417, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)},
{ 424, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)},
{ 431, 439, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)},
{ 441, 449, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)},
{ 451, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)},
{ 466, -1, -1, sizeof(::greptime::v1::NotifyChannel)},
{ 475, 483, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)},
{ 485, -1, -1, sizeof(::greptime::v1::WebhookOptions)},
{ 493, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)},
{ 44, -1, -1, sizeof(::greptime::v1::DropFlowExpr)},
{ 54, -1, -1, sizeof(::greptime::v1::CreateViewExpr)},
{ 70, -1, -1, sizeof(::greptime::v1::DropViewExpr)},
{ 81, 89, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
{ 91, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
{ 108, -1, -1, sizeof(::greptime::v1::AlterTableExpr)},
{ 130, -1, -1, sizeof(::greptime::v1::DropDefault)},
{ 137, -1, -1, sizeof(::greptime::v1::SetIndexes)},
{ 144, -1, -1, sizeof(::greptime::v1::UnsetIndexes)},
{ 151, -1, -1, sizeof(::greptime::v1::SetDefault)},
{ 159, -1, -1, sizeof(::greptime::v1::SetIndex)},
{ 169, -1, -1, sizeof(::greptime::v1::UnsetIndex)},
{ 179, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
{ 190, 198, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
{ 200, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 210, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 221, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
{ 230, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 237, -1, -1, sizeof(::greptime::v1::DropDefaults)},
{ 244, -1, -1, sizeof(::greptime::v1::SetDefaults)},
{ 251, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 258, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)},
{ 265, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 272, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 281, -1, -1, sizeof(::greptime::v1::ModifyColumnType)},
{ 290, -1, -1, sizeof(::greptime::v1::Option)},
{ 298, -1, -1, sizeof(::greptime::v1::SetTableOptions)},
{ 305, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)},
{ 312, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 319, -1, -1, sizeof(::greptime::v1::TableId)},
{ 326, -1, -1, sizeof(::greptime::v1::FlowId)},
{ 333, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 347, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
{ 355, -1, -1, sizeof(::greptime::v1::SetFulltext)},
{ 368, -1, -1, sizeof(::greptime::v1::UnsetFulltext)},
{ 375, -1, -1, sizeof(::greptime::v1::SetInverted)},
{ 382, -1, -1, sizeof(::greptime::v1::UnsetInverted)},
{ 389, -1, -1, sizeof(::greptime::v1::SetSkipping)},
{ 400, -1, -1, sizeof(::greptime::v1::UnsetSkipping)},
{ 407, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)},
{ 418, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)},
{ 425, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)},
{ 432, 440, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)},
{ 442, 450, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)},
{ 452, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)},
{ 467, -1, -1, sizeof(::greptime::v1::NotifyChannel)},
{ 476, 484, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)},
{ 486, -1, -1, sizeof(::greptime::v1::WebhookOptions)},
{ 494, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -1418,166 +1420,167 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
"reateViewExprH\000\022.\n\tdrop_view\030\013 \001(\0132\031.gre"
"ptime.v1.DropViewExprH\000\0228\n\016alter_databas"
"e\030\014 \001(\0132\036.greptime.v1.AlterDatabaseExprH"
"\000B\006\n\004expr\"\226\003\n\016CreateFlowExpr\022\024\n\014catalog_"
"\000B\006\n\004expr\"\310\003\n\016CreateFlowExpr\022\024\n\014catalog_"
"name\030\001 \001(\t\022\021\n\tflow_name\030\002 \001(\t\0222\n\022source_"
"table_names\030\003 \003(\0132\026.greptime.v1.TableNam"
"e\022/\n\017sink_table_name\030\004 \001(\0132\026.greptime.v1"
".TableName\022\022\n\nor_replace\030\005 \001(\010\022\034\n\024create"
"_if_not_exists\030\006 \001(\010\022.\n\014expire_after\030\007 \001"
"(\0132\030.greptime.v1.ExpireAfter\022\017\n\007comment\030"
"\010 \001(\t\022\013\n\003sql\030\t \001(\t\022B\n\014flow_options\030\n \003(\013"
"2,.greptime.v1.CreateFlowExpr.FlowOption"
"sEntry\0322\n\020FlowOptionsEntry\022\013\n\003key\030\001 \001(\t\022"
"\r\n\005value\030\002 \001(\t:\0028\001\"u\n\014DropFlowExpr\022\024\n\014ca"
"talog_name\030\001 \001(\t\022\021\n\tflow_name\030\002 \001(\t\022$\n\007f"
"low_id\030\003 \001(\0132\023.greptime.v1.FlowId\022\026\n\016dro"
"p_if_exists\030\005 \001(\010\"\376\001\n\016CreateViewExpr\022\024\n\014"
"catalog_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_exists\030\005 \001(\010\022\022\n\nor_rep"
"lace\030\006 \001(\010\022+\n\013table_names\030\007 \003(\0132\026.grepti"
"me.v1.TableName\022\017\n\007columns\030\010 \003(\t\022\024\n\014plan"
"_columns\030\t \003(\t\022\022\n\ndefinition\030\n \001(\t\"\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\"\312\005\n\016AlterTableExpr\022\024\n\014catalog"
"_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntabl"
"e_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\0132\027.grep"
"time.v1.AddColumnsH\000\0220\n\014drop_columns\030\005 \001"
"(\0132\030.greptime.v1.DropColumnsH\000\0220\n\014rename"
"_table\030\006 \001(\0132\030.greptime.v1.RenameTableH\000"
"\022=\n\023modify_column_types\030\007 \001(\0132\036.greptime"
".v1.ModifyColumnTypesH\000\0229\n\021set_table_opt"
"ions\030\010 \001(\0132\034.greptime.v1.SetTableOptions"
"H\000\022=\n\023unset_table_options\030\013 \001(\0132\036.grepti"
"me.v1.UnsetTableOptionsH\000\022*\n\tset_index\030\014"
" \001(\0132\025.greptime.v1.SetIndexH\000\022.\n\013unset_i"
"ndex\030\r \001(\0132\027.greptime.v1.UnsetIndexH\000\0222\n"
"\rdrop_defaults\030\016 \001(\0132\031.greptime.v1.DropD"
"efaultsH\000\022.\n\013set_indexes\030\017 \001(\0132\027.greptim"
"e.v1.SetIndexesH\000\0222\n\runset_indexes\030\020 \001(\013"
"2\031.greptime.v1.UnsetIndexesH\000\0220\n\014set_def"
"aults\030\021 \001(\0132\030.greptime.v1.SetDefaultsH\000B"
"\006\n\004kind\"\"\n\013DropDefault\022\023\n\013column_name\030\001 "
"\001(\t\"8\n\nSetIndexes\022*\n\013set_indexes\030\001 \003(\0132\025"
".greptime.v1.SetIndex\">\n\014UnsetIndexes\022.\n"
"\runset_indexes\030\001 \003(\0132\027.greptime.v1.Unset"
"Index\"=\n\nSetDefault\022\023\n\013column_name\030\001 \001(\t"
"\022\032\n\022default_constraint\030\002 \001(\014\"\237\001\n\010SetInde"
"x\022,\n\010fulltext\030\001 \001(\0132\030.greptime.v1.SetFul"
"ltextH\000\022,\n\010inverted\030\002 \001(\0132\030.greptime.v1."
"SetInvertedH\000\022,\n\010skipping\030\003 \001(\0132\030.grepti"
"me.v1.SetSkippingH\000B\t\n\007options\"\247\001\n\nUnset"
"Index\022.\n\010fulltext\030\001 \001(\0132\032.greptime.v1.Un"
"setFulltextH\000\022.\n\010inverted\030\002 \001(\0132\032.grepti"
"me.v1.UnsetInvertedH\000\022.\n\010skipping\030\003 \001(\0132"
"\032.greptime.v1.UnsetSkippingH\000B\t\n\007options"
"\"\216\001\n\rDropTableExpr\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(\0132\024.greptime.v1.TableI"
"d\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022CreateData"
"baseExpr\022\024\n\014catalog_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.CreateD"
"atabaseExpr.OptionsEntry\032.\n\014OptionsEntry"
"\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\250\001\n\021Tru"
"ncateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013"
"schema_name\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,\n"
"\013time_ranges\030\005 \001(\0132\027.greptime.v1.TimeRan"
"ges\"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_ex"
"ists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns\030"
"\001 \003(\0132\026.greptime.v1.AddColumn\"\?\n\014DropDef"
"aults\022/\n\rdrop_defaults\030\001 \003(\0132\030.greptime."
"v1.DropDefault\"<\n\013SetDefaults\022-\n\014set_def"
"aults\030\001 \003(\0132\027.greptime.v1.SetDefault\"<\n\013"
"DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.grep"
"time.v1.DropColumn\"O\n\021ModifyColumnTypes\022"
":\n\023modify_column_types\030\001 \003(\0132\035.greptime."
"v1.ModifyColumnType\"%\n\013RenameTable\022\026\n\016ne"
"w_table_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncolu"
"mn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010"
"location\030\003 \001(\0132\036.greptime.v1.AddColumnLo"
"cation\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020Mo"
"difyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013t"
"arget_type\030\002 \001(\0162\033.greptime.v1.ColumnDat"
"aType\022C\n\025target_type_extension\030\003 \001(\0132$.g"
"reptime.v1.ColumnDataTypeExtension\"$\n\006Op"
"tion\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017SetT"
"ableOptions\022*\n\rtable_options\030\001 \003(\0132\023.gre"
"ptime.v1.Option\"!\n\021UnsetTableOptions\022\014\n\004"
"keys\030\001 \003(\t\"\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\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_"
"type\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022"
"\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constrai"
"nt\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grepti"
"me.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022d"
"atatype_extension\030\007 \001(\0132$.greptime.v1.Co"
"lumnDataTypeExtension\022+\n\007options\030\010 \001(\0132\032"
".greptime.v1.ColumnOptions\"\230\001\n\021AddColumn"
"Location\022B\n\rlocation_type\030\001 \001(\0162+.grepti"
"me.v1.AddColumnLocation.LocationType\022\031\n\021"
"after_column_name\030\002 \001(\t\"$\n\014LocationType\022"
"\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltext\022\023\n"
"\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010an"
"alyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016c"
"ase_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034.g"
"reptime.v1.FulltextBackend\022\023\n\013granularit"
"y\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001\"$\n\r"
"UnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013Se"
"tInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnsetI"
"nverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013SetSkip"
"ping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001("
"\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_index"
"_type\030\004 \001(\0162\036.greptime.v1.SkippingIndexT"
"ype\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\rUnse"
"tSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021Alter"
"DatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sc"
"hema_name\030\002 \001(\t\022\?\n\024set_database_options\030"
"\003 \001(\0132\037.greptime.v1.SetDatabaseOptionsH\000"
"\022C\n\026unset_database_options\030\004 \001(\0132!.grept"
"ime.v1.UnsetDatabaseOptionsH\000B\006\n\004kind\"G\n"
"\022SetDatabaseOptions\0221\n\024set_database_opti"
"ons\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024UnsetD"
"atabaseOptions\022\014\n\004keys\030\001 \003(\t\"\305\003\n\021CreateT"
"riggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014trig"
"ger_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030\003"
" \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132\032.gr"
"eptime.v1.NotifyChannel\022:\n\006labels\030\006 \003(\0132"
"*.greptime.v1.CreateTriggerExpr.LabelsEn"
"try\022D\n\013annotations\030\007 \003(\0132/.greptime.v1.C"
"reateTriggerExpr.AnnotationsEntry\022+\n\010int"
"erval\030\010 \001(\0132\031.google.protobuf.Duration\022\031"
"\n\021raw_interval_expr\030\t \001(\t\032-\n\013LabelsEntry"
"\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Anno"
"tationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
":\0028\001\"]\n\rNotifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007w"
"ebhook\030\002 \001(\0132\033.greptime.v1.WebhookOption"
"sH\000B\016\n\014channel_type\"\177\n\016WebhookOptions\022\013\n"
"\003url\030\001 \001(\t\0223\n\004opts\030\002 \003(\0132%.greptime.v1.W"
"ebhookOptions.OptsEntry\032+\n\tOptsEntry\022\013\n\003"
"key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTrig"
"gerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014trigger"
"_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010A"
"nalyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017Ful"
"ltextBackend\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021"
"SkippingIndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016i"
"o.greptime.v1B\003DdlZ5github.com/GreptimeT"
"eam/greptime-proto/go/greptime/v1b\006proto"
"3"
"(\0132\030.greptime.v1.ExpireAfter\0220\n\reval_int"
"erval\030\013 \001(\0132\031.greptime.v1.EvalInterval\022\017"
"\n\007comment\030\010 \001(\t\022\013\n\003sql\030\t \001(\t\022B\n\014flow_opt"
"ions\030\n \003(\0132,.greptime.v1.CreateFlowExpr."
"FlowOptionsEntry\0322\n\020FlowOptionsEntry\022\013\n\003"
"key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\014DropFlow"
"Expr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tflow_name\030"
"\002 \001(\t\022$\n\007flow_id\030\003 \001(\0132\023.greptime.v1.Flo"
"wId\022\026\n\016drop_if_exists\030\005 \001(\010\"\376\001\n\016CreateVi"
"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\024\n\014logical_"
"plan\030\004 \001(\014\022\034\n\024create_if_not_exists\030\005 \001(\010"
"\022\022\n\nor_replace\030\006 \001(\010\022+\n\013table_names\030\007 \003("
"\0132\026.greptime.v1.TableName\022\017\n\007columns\030\010 \003"
"(\t\022\024\n\014plan_columns\030\t \003(\t\022\022\n\ndefinition\030\n"
" \001(\t\"\213\001\n\014DropViewExpr\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%\n\007view_id\030\004 \001(\0132\024.greptime.v1.Table"
"Id\022\026\n\016drop_if_exists\030\005 \001(\010\"\207\003\n\017CreateTab"
"leExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n"
"ame\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004desc\030\004 "
"\001(\t\022+\n\013column_defs\030\005 \003(\0132\026.greptime.v1.C"
"olumnDef\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.Cr"
"eateTableExpr.TableOptionsEntry\022&\n\010table"
"_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006engin"
"e\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\"\312\005\n\016AlterTableExpr\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.AddColumnsH\000\0220\n\014drop_c"
"olumns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000"
"\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1.Ren"
"ameTableH\000\022=\n\023modify_column_types\030\007 \001(\0132"
"\036.greptime.v1.ModifyColumnTypesH\000\0229\n\021set"
"_table_options\030\010 \001(\0132\034.greptime.v1.SetTa"
"bleOptionsH\000\022=\n\023unset_table_options\030\013 \001("
"\0132\036.greptime.v1.UnsetTableOptionsH\000\022*\n\ts"
"et_index\030\014 \001(\0132\025.greptime.v1.SetIndexH\000\022"
".\n\013unset_index\030\r \001(\0132\027.greptime.v1.Unset"
"IndexH\000\0222\n\rdrop_defaults\030\016 \001(\0132\031.greptim"
"e.v1.DropDefaultsH\000\022.\n\013set_indexes\030\017 \001(\013"
"2\027.greptime.v1.SetIndexesH\000\0222\n\runset_ind"
"exes\030\020 \001(\0132\031.greptime.v1.UnsetIndexesH\000\022"
"0\n\014set_defaults\030\021 \001(\0132\030.greptime.v1.SetD"
"efaultsH\000B\006\n\004kind\"\"\n\013DropDefault\022\023\n\013colu"
"mn_name\030\001 \001(\t\"8\n\nSetIndexes\022*\n\013set_index"
"es\030\001 \003(\0132\025.greptime.v1.SetIndex\">\n\014Unset"
"Indexes\022.\n\runset_indexes\030\001 \003(\0132\027.greptim"
"e.v1.UnsetIndex\"=\n\nSetDefault\022\023\n\013column_"
"name\030\001 \001(\t\022\032\n\022default_constraint\030\002 \001(\014\"\237"
"\001\n\010SetIndex\022,\n\010fulltext\030\001 \001(\0132\030.greptime"
".v1.SetFulltextH\000\022,\n\010inverted\030\002 \001(\0132\030.gr"
"eptime.v1.SetInvertedH\000\022,\n\010skipping\030\003 \001("
"\0132\030.greptime.v1.SetSkippingH\000B\t\n\007options"
"\"\247\001\n\nUnsetIndex\022.\n\010fulltext\030\001 \001(\0132\032.grep"
"time.v1.UnsetFulltextH\000\022.\n\010inverted\030\002 \001("
"\0132\032.greptime.v1.UnsetInvertedH\000\022.\n\010skipp"
"ing\030\003 \001(\0132\032.greptime.v1.UnsetSkippingH\000B"
"\t\n\007options\"\216\001\n\rDropTableExpr\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(\0132\024.greptime"
".v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022"
"CreateDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t"
"\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_not_e"
"xists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime."
"v1.CreateDatabaseExpr.OptionsEntry\032.\n\014Op"
"tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
"8\001\"\250\001\n\021TruncateTableExpr\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\010table_id\030\004 \001(\0132\024.greptime.v1."
"TableId\022,\n\013time_ranges\030\005 \001(\0132\027.greptime."
"v1.TimeRanges\"U\n\020DropDatabaseExpr\022\024\n\014cat"
"alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016"
"drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad"
"d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\""
"\?\n\014DropDefaults\022/\n\rdrop_defaults\030\001 \003(\0132\030"
".greptime.v1.DropDefault\"<\n\013SetDefaults\022"
"-\n\014set_defaults\030\001 \003(\0132\027.greptime.v1.SetD"
"efault\"<\n\013DropColumns\022-\n\014drop_columns\030\001 "
"\003(\0132\027.greptime.v1.DropColumn\"O\n\021ModifyCo"
"lumnTypes\022:\n\023modify_column_types\030\001 \003(\0132\035"
".greptime.v1.ModifyColumnType\"%\n\013RenameT"
"able\022\026\n\016new_table_name\030\001 \001(\t\"\204\001\n\tAddColu"
"mn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Col"
"umnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.A"
"ddColumnLocation\022\031\n\021add_if_not_exists\030\004 "
"\001(\010\"\236\001\n\020ModifyColumnType\022\023\n\013column_name\030"
"\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1"
".ColumnDataType\022C\n\025target_type_extension"
"\030\003 \001(\0132$.greptime.v1.ColumnDataTypeExten"
"sion\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
"(\t\"=\n\017SetTableOptions\022*\n\rtable_options\030\001"
" \003(\0132\023.greptime.v1.Option\"!\n\021UnsetTableO"
"ptions\022\014\n\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004na"
"me\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowI"
"d\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001("
"\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Colum"
"nDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022defaul"
"t_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$.grep"
"time.v1.ColumnDataTypeExtension\022+\n\007optio"
"ns\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n"
"\021AddColumnLocation\022B\n\rlocation_type\030\001 \001("
"\0162+.greptime.v1.AddColumnLocation.Locati"
"onType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Loc"
"ationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetF"
"ulltext\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002"
" \001(\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Ana"
"lyzer\022\026\n\016case_sensitive\030\004 \001(\010\022-\n\007backend"
"\030\005 \001(\0162\034.greptime.v1.FulltextBackend\022\023\n\013"
"granularity\030\006 \001(\004\022\033\n\023false_positive_rate"
"\030\007 \001(\001\"$\n\rUnsetFulltext\022\023\n\013column_name\030\001"
" \001(\t\"\"\n\013SetInverted\022\023\n\013column_name\030\001 \001(\t"
"\"$\n\rUnsetInverted\022\023\n\013column_name\030\001 \001(\t\"\241"
"\001\n\013SetSkipping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006e"
"nable\030\002 \001(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skip"
"ping_index_type\030\004 \001(\0162\036.greptime.v1.Skip"
"pingIndexType\022\033\n\023false_positive_rate\030\005 \001"
"(\001\"$\n\rUnsetSkipping\022\023\n\013column_name\030\001 \001(\t"
"\"\314\001\n\021AlterDatabaseExpr\022\024\n\014catalog_name\030\001"
" \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\?\n\024set_databas"
"e_options\030\003 \001(\0132\037.greptime.v1.SetDatabas"
"eOptionsH\000\022C\n\026unset_database_options\030\004 \001"
"(\0132!.greptime.v1.UnsetDatabaseOptionsH\000B"
"\006\n\004kind\"G\n\022SetDatabaseOptions\0221\n\024set_dat"
"abase_options\030\001 \003(\0132\023.greptime.v1.Option"
"\"$\n\024UnsetDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\305"
"\003\n\021CreateTriggerExpr\022\024\n\014catalog_name\030\001 \001"
"(\t\022\024\n\014trigger_name\030\002 \001(\t\022\034\n\024create_if_no"
"t_exists\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030"
"\005 \003(\0132\032.greptime.v1.NotifyChannel\022:\n\006lab"
"els\030\006 \003(\0132*.greptime.v1.CreateTriggerExp"
"r.LabelsEntry\022D\n\013annotations\030\007 \003(\0132/.gre"
"ptime.v1.CreateTriggerExpr.AnnotationsEn"
"try\022+\n\010interval\030\010 \001(\0132\031.google.protobuf."
"Duration\022\031\n\021raw_interval_expr\030\t \001(\t\032-\n\013L"
"abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
"8\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
"alue\030\002 \001(\t:\0028\001\"]\n\rNotifyChannel\022\014\n\004name\030"
"\001 \001(\t\022.\n\007webhook\030\002 \001(\0132\033.greptime.v1.Web"
"hookOptionsH\000B\016\n\014channel_type\"\177\n\016Webhook"
"Options\022\013\n\003url\030\001 \001(\t\0223\n\004opts\030\002 \003(\0132%.gre"
"ptime.v1.WebhookOptions.OptsEntry\032+\n\tOpt"
"sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U"
"\n\017DropTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022"
"\024\n\014trigger_name\030\002 \001(\t\022\026\n\016drop_if_exists\030"
"\003 \001(\010*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINES"
"E\020\001*)\n\017FulltextBackend\022\013\n\007TANTIVY\020\000\022\t\n\005B"
"LOOM\020\001*%\n\021SkippingIndexType\022\020\n\014BLOOM_FIL"
"TER\020\000BL\n\016io.greptime.v1B\003DdlZ5github.com"
"/GreptimeTeam/greptime-proto/go/greptime"
"/v1b\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[2] = {
&::descriptor_table_google_2fprotobuf_2fduration_2eproto,
@@ -1585,7 +1588,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
false, false, 7001, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
false, false, 7051, 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, 2, 52,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
@@ -2452,6 +2455,7 @@ class CreateFlowExpr::_Internal {
public:
static const ::greptime::v1::TableName& sink_table_name(const CreateFlowExpr* msg);
static const ::greptime::v1::ExpireAfter& expire_after(const CreateFlowExpr* msg);
static const ::greptime::v1::EvalInterval& eval_interval(const CreateFlowExpr* msg);
};
const ::greptime::v1::TableName&
@@ -2462,6 +2466,10 @@ const ::greptime::v1::ExpireAfter&
CreateFlowExpr::_Internal::expire_after(const CreateFlowExpr* msg) {
return *msg->_impl_.expire_after_;
}
const ::greptime::v1::EvalInterval&
CreateFlowExpr::_Internal::eval_interval(const CreateFlowExpr* msg) {
return *msg->_impl_.eval_interval_;
}
void CreateFlowExpr::clear_source_table_names() {
_impl_.source_table_names_.Clear();
}
@@ -2477,6 +2485,12 @@ void CreateFlowExpr::clear_expire_after() {
}
_impl_.expire_after_ = nullptr;
}
void CreateFlowExpr::clear_eval_interval() {
if (GetArenaForAllocation() == nullptr && _impl_.eval_interval_ != nullptr) {
delete _impl_.eval_interval_;
}
_impl_.eval_interval_ = nullptr;
}
CreateFlowExpr::CreateFlowExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -2498,6 +2512,7 @@ CreateFlowExpr::CreateFlowExpr(const CreateFlowExpr& from)
, decltype(_impl_.sql_){}
, decltype(_impl_.sink_table_name_){nullptr}
, decltype(_impl_.expire_after_){nullptr}
, decltype(_impl_.eval_interval_){nullptr}
, decltype(_impl_.or_replace_){}
, decltype(_impl_.create_if_not_exists_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -2542,6 +2557,9 @@ CreateFlowExpr::CreateFlowExpr(const CreateFlowExpr& from)
if (from._internal_has_expire_after()) {
_this->_impl_.expire_after_ = new ::greptime::v1::ExpireAfter(*from._impl_.expire_after_);
}
if (from._internal_has_eval_interval()) {
_this->_impl_.eval_interval_ = new ::greptime::v1::EvalInterval(*from._impl_.eval_interval_);
}
::memcpy(&_impl_.or_replace_, &from._impl_.or_replace_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.create_if_not_exists_) -
reinterpret_cast<char*>(&_impl_.or_replace_)) + sizeof(_impl_.create_if_not_exists_));
@@ -2561,6 +2579,7 @@ inline void CreateFlowExpr::SharedCtor(
, decltype(_impl_.sql_){}
, decltype(_impl_.sink_table_name_){nullptr}
, decltype(_impl_.expire_after_){nullptr}
, decltype(_impl_.eval_interval_){nullptr}
, decltype(_impl_.or_replace_){false}
, decltype(_impl_.create_if_not_exists_){false}
, /*decltype(_impl_._cached_size_)*/{}
@@ -2604,6 +2623,7 @@ inline void CreateFlowExpr::SharedDtor() {
_impl_.sql_.Destroy();
if (this != internal_default_instance()) delete _impl_.sink_table_name_;
if (this != internal_default_instance()) delete _impl_.expire_after_;
if (this != internal_default_instance()) delete _impl_.eval_interval_;
}
void CreateFlowExpr::ArenaDtor(void* object) {
@@ -2634,6 +2654,10 @@ void CreateFlowExpr::Clear() {
delete _impl_.expire_after_;
}
_impl_.expire_after_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.eval_interval_ != nullptr) {
delete _impl_.eval_interval_;
}
_impl_.eval_interval_ = nullptr;
::memset(&_impl_.or_replace_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.create_if_not_exists_) -
reinterpret_cast<char*>(&_impl_.or_replace_)) + sizeof(_impl_.create_if_not_exists_));
@@ -2744,6 +2768,14 @@ const char* CreateFlowExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext
} else
goto handle_unusual;
continue;
// .greptime.v1.EvalInterval eval_interval = 11;
case 11:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
ptr = ctx->ParseMessage(_internal_mutable_eval_interval(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -2877,6 +2909,13 @@ uint8_t* CreateFlowExpr::_InternalSerialize(
}
}
// .greptime.v1.EvalInterval eval_interval = 11;
if (this->_internal_has_eval_interval()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(11, _Internal::eval_interval(this),
_Internal::eval_interval(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);
@@ -2951,6 +2990,13 @@ size_t CreateFlowExpr::ByteSizeLong() const {
*_impl_.expire_after_);
}
// .greptime.v1.EvalInterval eval_interval = 11;
if (this->_internal_has_eval_interval()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.eval_interval_);
}
// bool or_replace = 5;
if (this->_internal_or_replace() != 0) {
total_size += 1 + 1;
@@ -3001,6 +3047,10 @@ void CreateFlowExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
_this->_internal_mutable_expire_after()->::greptime::v1::ExpireAfter::MergeFrom(
from._internal_expire_after());
}
if (from._internal_has_eval_interval()) {
_this->_internal_mutable_eval_interval()->::greptime::v1::EvalInterval::MergeFrom(
from._internal_eval_interval());
}
if (from._internal_or_replace() != 0) {
_this->_internal_set_or_replace(from._internal_or_replace());
}
+105
View File
@@ -900,6 +900,7 @@ class CreateFlowExpr final :
kSqlFieldNumber = 9,
kSinkTableNameFieldNumber = 4,
kExpireAfterFieldNumber = 7,
kEvalIntervalFieldNumber = 11,
kOrReplaceFieldNumber = 5,
kCreateIfNotExistsFieldNumber = 6,
};
@@ -1030,6 +1031,24 @@ class CreateFlowExpr final :
::greptime::v1::ExpireAfter* expire_after);
::greptime::v1::ExpireAfter* unsafe_arena_release_expire_after();
// .greptime.v1.EvalInterval eval_interval = 11;
bool has_eval_interval() const;
private:
bool _internal_has_eval_interval() const;
public:
void clear_eval_interval();
const ::greptime::v1::EvalInterval& eval_interval() const;
PROTOBUF_NODISCARD ::greptime::v1::EvalInterval* release_eval_interval();
::greptime::v1::EvalInterval* mutable_eval_interval();
void set_allocated_eval_interval(::greptime::v1::EvalInterval* eval_interval);
private:
const ::greptime::v1::EvalInterval& _internal_eval_interval() const;
::greptime::v1::EvalInterval* _internal_mutable_eval_interval();
public:
void unsafe_arena_set_allocated_eval_interval(
::greptime::v1::EvalInterval* eval_interval);
::greptime::v1::EvalInterval* unsafe_arena_release_eval_interval();
// bool or_replace = 5;
void clear_or_replace();
bool or_replace() const;
@@ -1068,6 +1087,7 @@ class CreateFlowExpr final :
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_;
::greptime::v1::TableName* sink_table_name_;
::greptime::v1::ExpireAfter* expire_after_;
::greptime::v1::EvalInterval* eval_interval_;
bool or_replace_;
bool create_if_not_exists_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -10880,6 +10900,91 @@ inline void CreateFlowExpr::set_allocated_expire_after(::greptime::v1::ExpireAft
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowExpr.expire_after)
}
// .greptime.v1.EvalInterval eval_interval = 11;
inline bool CreateFlowExpr::_internal_has_eval_interval() const {
return this != internal_default_instance() && _impl_.eval_interval_ != nullptr;
}
inline bool CreateFlowExpr::has_eval_interval() const {
return _internal_has_eval_interval();
}
inline const ::greptime::v1::EvalInterval& CreateFlowExpr::_internal_eval_interval() const {
const ::greptime::v1::EvalInterval* p = _impl_.eval_interval_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::EvalInterval&>(
::greptime::v1::_EvalInterval_default_instance_);
}
inline const ::greptime::v1::EvalInterval& CreateFlowExpr::eval_interval() const {
// @@protoc_insertion_point(field_get:greptime.v1.CreateFlowExpr.eval_interval)
return _internal_eval_interval();
}
inline void CreateFlowExpr::unsafe_arena_set_allocated_eval_interval(
::greptime::v1::EvalInterval* eval_interval) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.eval_interval_);
}
_impl_.eval_interval_ = eval_interval;
if (eval_interval) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.CreateFlowExpr.eval_interval)
}
inline ::greptime::v1::EvalInterval* CreateFlowExpr::release_eval_interval() {
::greptime::v1::EvalInterval* temp = _impl_.eval_interval_;
_impl_.eval_interval_ = 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::EvalInterval* CreateFlowExpr::unsafe_arena_release_eval_interval() {
// @@protoc_insertion_point(field_release:greptime.v1.CreateFlowExpr.eval_interval)
::greptime::v1::EvalInterval* temp = _impl_.eval_interval_;
_impl_.eval_interval_ = nullptr;
return temp;
}
inline ::greptime::v1::EvalInterval* CreateFlowExpr::_internal_mutable_eval_interval() {
if (_impl_.eval_interval_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::EvalInterval>(GetArenaForAllocation());
_impl_.eval_interval_ = p;
}
return _impl_.eval_interval_;
}
inline ::greptime::v1::EvalInterval* CreateFlowExpr::mutable_eval_interval() {
::greptime::v1::EvalInterval* _msg = _internal_mutable_eval_interval();
// @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowExpr.eval_interval)
return _msg;
}
inline void CreateFlowExpr::set_allocated_eval_interval(::greptime::v1::EvalInterval* eval_interval) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.eval_interval_);
}
if (eval_interval) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(eval_interval));
if (message_arena != submessage_arena) {
eval_interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, eval_interval, submessage_arena);
}
} else {
}
_impl_.eval_interval_ = eval_interval;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowExpr.eval_interval)
}
// string comment = 8;
inline void CreateFlowExpr::clear_comment() {
_impl_.comment_.ClearToEmpty();
+72 -22
View File
@@ -165,6 +165,7 @@ PROTOBUF_CONSTEXPR CreateRequest::CreateRequest(
, /*decltype(_impl_.flow_id_)*/nullptr
, /*decltype(_impl_.sink_table_name_)*/nullptr
, /*decltype(_impl_.expire_after_)*/nullptr
, /*decltype(_impl_.eval_interval_)*/nullptr
, /*decltype(_impl_.create_if_not_exists_)*/false
, /*decltype(_impl_.or_replace_)*/false
, /*decltype(_impl_._cached_size_)*/{}} {}
@@ -311,6 +312,7 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.sink_table_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.create_if_not_exists_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.expire_after_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.eval_interval_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.comment_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.sql_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.flow_options_),
@@ -342,8 +344,8 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 69, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
{ 79, 87, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
{ 89, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
{ 104, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
{ 111, -1, -1, sizeof(::greptime::v1::flow::FlushFlow)},
{ 105, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
{ 112, -1, -1, sizeof(::greptime::v1::flow::FlushFlow)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -389,30 +391,31 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO
"ected_flows\030\003 \003(\0132\023.greptime.v1.FlowId\022B"
"\n\nextensions\030\004 \003(\0132..greptime.v1.flow.Fl"
"owResponse.ExtensionsEntry\0321\n\017Extensions"
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\222\003"
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\304\003"
"\n\rCreateRequest\022$\n\007flow_id\030\001 \001(\0132\023.grept"
"ime.v1.FlowId\022.\n\020source_table_ids\030\002 \003(\0132"
"\024.greptime.v1.TableId\022/\n\017sink_table_name"
"\030\003 \001(\0132\026.greptime.v1.TableName\022\034\n\024create"
"_if_not_exists\030\004 \001(\010\022.\n\014expire_after\030\005 \001"
"(\0132\030.greptime.v1.ExpireAfter\022\017\n\007comment\030"
"\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_options\030\010 \003(\013"
"20.greptime.v1.flow.CreateRequest.FlowOp"
"tionsEntry\022\022\n\nor_replace\030\t \001(\010\0322\n\020FlowOp"
"tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
"8\001\"3\n\013DropRequest\022$\n\007flow_id\030\001 \001(\0132\023.gre"
"ptime.v1.FlowId\"1\n\tFlushFlow\022$\n\007flow_id\030"
"\001 \001(\0132\023.greptime.v1.FlowId2\230\002\n\004Flow\022S\n\022H"
"andleCreateRemove\022\035.greptime.v1.flow.Flo"
"wRequest\032\036.greptime.v1.flow.FlowResponse"
"\022W\n\023HandleMirrorRequest\022 .greptime.v1.fl"
"ow.InsertRequests\032\036.greptime.v1.flow.Flo"
"wResponse\022b\n\031HandleMarkDirtyTimeWindow\022%"
".greptime.v1.flow.DirtyWindowRequests\032\036."
"greptime.v1.flow.FlowResponseBY\n\023io.grep"
"time.v1.flowB\006ServerZ:github.com/Greptim"
"eTeam/greptime-proto/go/greptime/v1/flow"
"b\006proto3"
"(\0132\030.greptime.v1.ExpireAfter\0220\n\reval_int"
"erval\030\n \001(\0132\031.greptime.v1.EvalInterval\022\017"
"\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_opt"
"ions\030\010 \003(\01320.greptime.v1.flow.CreateRequ"
"est.FlowOptionsEntry\022\022\n\nor_replace\030\t \001(\010"
"\0322\n\020FlowOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
"ue\030\002 \001(\t:\0028\001\"3\n\013DropRequest\022$\n\007flow_id\030\001"
" \001(\0132\023.greptime.v1.FlowId\"1\n\tFlushFlow\022$"
"\n\007flow_id\030\001 \001(\0132\023.greptime.v1.FlowId2\230\002\n"
"\004Flow\022S\n\022HandleCreateRemove\022\035.greptime.v"
"1.flow.FlowRequest\032\036.greptime.v1.flow.Fl"
"owResponse\022W\n\023HandleMirrorRequest\022 .grep"
"time.v1.flow.InsertRequests\032\036.greptime.v"
"1.flow.FlowResponse\022b\n\031HandleMarkDirtyTi"
"meWindow\022%.greptime.v1.flow.DirtyWindowR"
"equests\032\036.greptime.v1.flow.FlowResponseB"
"Y\n\023io.greptime.v1.flowB\006ServerZ:github.c"
"om/GreptimeTeam/greptime-proto/go/grepti"
"me/v1/flowb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -421,7 +424,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflo
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto = {
false, false, 1968, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
false, false, 2018, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
"greptime/v1/flow/server.proto",
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 13,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets,
@@ -2310,6 +2313,7 @@ class CreateRequest::_Internal {
static const ::greptime::v1::FlowId& flow_id(const CreateRequest* msg);
static const ::greptime::v1::TableName& sink_table_name(const CreateRequest* msg);
static const ::greptime::v1::ExpireAfter& expire_after(const CreateRequest* msg);
static const ::greptime::v1::EvalInterval& eval_interval(const CreateRequest* msg);
};
const ::greptime::v1::FlowId&
@@ -2324,6 +2328,10 @@ const ::greptime::v1::ExpireAfter&
CreateRequest::_Internal::expire_after(const CreateRequest* msg) {
return *msg->_impl_.expire_after_;
}
const ::greptime::v1::EvalInterval&
CreateRequest::_Internal::eval_interval(const CreateRequest* msg) {
return *msg->_impl_.eval_interval_;
}
void CreateRequest::clear_flow_id() {
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
delete _impl_.flow_id_;
@@ -2345,6 +2353,12 @@ void CreateRequest::clear_expire_after() {
}
_impl_.expire_after_ = nullptr;
}
void CreateRequest::clear_eval_interval() {
if (GetArenaForAllocation() == nullptr && _impl_.eval_interval_ != nullptr) {
delete _impl_.eval_interval_;
}
_impl_.eval_interval_ = nullptr;
}
CreateRequest::CreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -2365,6 +2379,7 @@ CreateRequest::CreateRequest(const CreateRequest& from)
, decltype(_impl_.flow_id_){nullptr}
, decltype(_impl_.sink_table_name_){nullptr}
, decltype(_impl_.expire_after_){nullptr}
, decltype(_impl_.eval_interval_){nullptr}
, decltype(_impl_.create_if_not_exists_){}
, decltype(_impl_.or_replace_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -2396,6 +2411,9 @@ CreateRequest::CreateRequest(const CreateRequest& from)
if (from._internal_has_expire_after()) {
_this->_impl_.expire_after_ = new ::greptime::v1::ExpireAfter(*from._impl_.expire_after_);
}
if (from._internal_has_eval_interval()) {
_this->_impl_.eval_interval_ = new ::greptime::v1::EvalInterval(*from._impl_.eval_interval_);
}
::memcpy(&_impl_.create_if_not_exists_, &from._impl_.create_if_not_exists_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.or_replace_) -
reinterpret_cast<char*>(&_impl_.create_if_not_exists_)) + sizeof(_impl_.or_replace_));
@@ -2414,6 +2432,7 @@ inline void CreateRequest::SharedCtor(
, decltype(_impl_.flow_id_){nullptr}
, decltype(_impl_.sink_table_name_){nullptr}
, decltype(_impl_.expire_after_){nullptr}
, decltype(_impl_.eval_interval_){nullptr}
, decltype(_impl_.create_if_not_exists_){false}
, decltype(_impl_.or_replace_){false}
, /*decltype(_impl_._cached_size_)*/{}
@@ -2448,6 +2467,7 @@ inline void CreateRequest::SharedDtor() {
if (this != internal_default_instance()) delete _impl_.flow_id_;
if (this != internal_default_instance()) delete _impl_.sink_table_name_;
if (this != internal_default_instance()) delete _impl_.expire_after_;
if (this != internal_default_instance()) delete _impl_.eval_interval_;
}
void CreateRequest::ArenaDtor(void* object) {
@@ -2480,6 +2500,10 @@ void CreateRequest::Clear() {
delete _impl_.expire_after_;
}
_impl_.expire_after_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.eval_interval_ != nullptr) {
delete _impl_.eval_interval_;
}
_impl_.eval_interval_ = nullptr;
::memset(&_impl_.create_if_not_exists_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.or_replace_) -
reinterpret_cast<char*>(&_impl_.create_if_not_exists_)) + sizeof(_impl_.or_replace_));
@@ -2578,6 +2602,14 @@ const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.EvalInterval eval_interval = 10;
case 10:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
ptr = ctx->ParseMessage(_internal_mutable_eval_interval(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -2698,6 +2730,13 @@ uint8_t* CreateRequest::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteBoolToArray(9, this->_internal_or_replace(), target);
}
// .greptime.v1.EvalInterval eval_interval = 10;
if (this->_internal_has_eval_interval()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(10, _Internal::eval_interval(this),
_Internal::eval_interval(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);
@@ -2765,6 +2804,13 @@ size_t CreateRequest::ByteSizeLong() const {
*_impl_.expire_after_);
}
// .greptime.v1.EvalInterval eval_interval = 10;
if (this->_internal_has_eval_interval()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.eval_interval_);
}
// bool create_if_not_exists = 4;
if (this->_internal_create_if_not_exists() != 0) {
total_size += 1 + 1;
@@ -2813,6 +2859,10 @@ void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
_this->_internal_mutable_expire_after()->::greptime::v1::ExpireAfter::MergeFrom(
from._internal_expire_after());
}
if (from._internal_has_eval_interval()) {
_this->_internal_mutable_eval_interval()->::greptime::v1::EvalInterval::MergeFrom(
from._internal_eval_interval());
}
if (from._internal_create_if_not_exists() != 0) {
_this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists());
}
+105
View File
@@ -1619,6 +1619,7 @@ class CreateRequest final :
kFlowIdFieldNumber = 1,
kSinkTableNameFieldNumber = 3,
kExpireAfterFieldNumber = 5,
kEvalIntervalFieldNumber = 10,
kCreateIfNotExistsFieldNumber = 4,
kOrReplaceFieldNumber = 9,
};
@@ -1739,6 +1740,24 @@ class CreateRequest final :
::greptime::v1::ExpireAfter* expire_after);
::greptime::v1::ExpireAfter* unsafe_arena_release_expire_after();
// .greptime.v1.EvalInterval eval_interval = 10;
bool has_eval_interval() const;
private:
bool _internal_has_eval_interval() const;
public:
void clear_eval_interval();
const ::greptime::v1::EvalInterval& eval_interval() const;
PROTOBUF_NODISCARD ::greptime::v1::EvalInterval* release_eval_interval();
::greptime::v1::EvalInterval* mutable_eval_interval();
void set_allocated_eval_interval(::greptime::v1::EvalInterval* eval_interval);
private:
const ::greptime::v1::EvalInterval& _internal_eval_interval() const;
::greptime::v1::EvalInterval* _internal_mutable_eval_interval();
public:
void unsafe_arena_set_allocated_eval_interval(
::greptime::v1::EvalInterval* eval_interval);
::greptime::v1::EvalInterval* unsafe_arena_release_eval_interval();
// bool create_if_not_exists = 4;
void clear_create_if_not_exists();
bool create_if_not_exists() const;
@@ -1776,6 +1795,7 @@ class CreateRequest final :
::greptime::v1::FlowId* flow_id_;
::greptime::v1::TableName* sink_table_name_;
::greptime::v1::ExpireAfter* expire_after_;
::greptime::v1::EvalInterval* eval_interval_;
bool create_if_not_exists_;
bool or_replace_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -3312,6 +3332,91 @@ inline void CreateRequest::set_allocated_expire_after(::greptime::v1::ExpireAfte
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.CreateRequest.expire_after)
}
// .greptime.v1.EvalInterval eval_interval = 10;
inline bool CreateRequest::_internal_has_eval_interval() const {
return this != internal_default_instance() && _impl_.eval_interval_ != nullptr;
}
inline bool CreateRequest::has_eval_interval() const {
return _internal_has_eval_interval();
}
inline const ::greptime::v1::EvalInterval& CreateRequest::_internal_eval_interval() const {
const ::greptime::v1::EvalInterval* p = _impl_.eval_interval_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::EvalInterval&>(
::greptime::v1::_EvalInterval_default_instance_);
}
inline const ::greptime::v1::EvalInterval& CreateRequest::eval_interval() const {
// @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.eval_interval)
return _internal_eval_interval();
}
inline void CreateRequest::unsafe_arena_set_allocated_eval_interval(
::greptime::v1::EvalInterval* eval_interval) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.eval_interval_);
}
_impl_.eval_interval_ = eval_interval;
if (eval_interval) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.CreateRequest.eval_interval)
}
inline ::greptime::v1::EvalInterval* CreateRequest::release_eval_interval() {
::greptime::v1::EvalInterval* temp = _impl_.eval_interval_;
_impl_.eval_interval_ = 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::EvalInterval* CreateRequest::unsafe_arena_release_eval_interval() {
// @@protoc_insertion_point(field_release:greptime.v1.flow.CreateRequest.eval_interval)
::greptime::v1::EvalInterval* temp = _impl_.eval_interval_;
_impl_.eval_interval_ = nullptr;
return temp;
}
inline ::greptime::v1::EvalInterval* CreateRequest::_internal_mutable_eval_interval() {
if (_impl_.eval_interval_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::EvalInterval>(GetArenaForAllocation());
_impl_.eval_interval_ = p;
}
return _impl_.eval_interval_;
}
inline ::greptime::v1::EvalInterval* CreateRequest::mutable_eval_interval() {
::greptime::v1::EvalInterval* _msg = _internal_mutable_eval_interval();
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.eval_interval)
return _msg;
}
inline void CreateRequest::set_allocated_eval_interval(::greptime::v1::EvalInterval* eval_interval) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.eval_interval_);
}
if (eval_interval) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(eval_interval));
if (message_arena != submessage_arena) {
eval_interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, eval_interval, submessage_arena);
}
} else {
}
_impl_.eval_interval_ = eval_interval;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.CreateRequest.eval_interval)
}
// string comment = 6;
inline void CreateRequest::clear_comment() {
_impl_.comment_.ClearToEmpty();