feat: add type extension for column (#122)
* feat: decimal128 proto * chore: make all * chore: empty line * refactor: remove precision and scale * chore: cr comment Co-authored-by: Yingwen <realevenyag@gmail.com> --------- Co-authored-by: Yingwen <realevenyag@gmail.com>
This commit is contained in:
+119
-28
@@ -78,6 +78,7 @@ PROTOBUF_CONSTEXPR Column_Values::Column_Values(
|
||||
, /*decltype(_impl_._duration_microsecond_values_cached_byte_size_)*/{0}
|
||||
, /*decltype(_impl_.duration_nanosecond_values_)*/{}
|
||||
, /*decltype(_impl_._duration_nanosecond_values_cached_byte_size_)*/{0}
|
||||
, /*decltype(_impl_.decimal128_values_)*/{}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct Column_ValuesDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR Column_ValuesDefaultTypeInternal()
|
||||
@@ -93,6 +94,7 @@ PROTOBUF_CONSTEXPR Column::Column(
|
||||
/*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.null_mask_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.values_)*/nullptr
|
||||
, /*decltype(_impl_.datatype_extension_)*/nullptr
|
||||
, /*decltype(_impl_.semantic_type_)*/0
|
||||
, /*decltype(_impl_.datatype_)*/0
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
@@ -148,6 +150,7 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.duration_millisecond_values_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.duration_microsecond_values_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.duration_nanosecond_values_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.decimal128_values_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -159,10 +162,11 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.values_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.null_mask_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.datatype_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.datatype_extension_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::greptime::v1::Column_Values)},
|
||||
{ 36, -1, -1, sizeof(::greptime::v1::Column)},
|
||||
{ 37, -1, -1, sizeof(::greptime::v1::Column)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -172,43 +176,46 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
|
||||
const char descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
"\n\030greptime/v1/column.proto\022\013greptime.v1\032"
|
||||
"\030greptime/v1/common.proto\"\256\010\n\006Column\022\023\n\013"
|
||||
"\030greptime/v1/common.proto\"\244\t\n\006Column\022\023\n\013"
|
||||
"column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016"
|
||||
"2\031.greptime.v1.SemanticType\022*\n\006values\030\003 "
|
||||
"\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_"
|
||||
"mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime."
|
||||
"v1.ColumnDataType\032\356\006\n\006Values\022\021\n\ti8_value"
|
||||
"s\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(\005\022\022\n\ni32_value"
|
||||
"s\030\003 \003(\005\022\022\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values"
|
||||
"\030\005 \003(\r\022\022\n\nu16_values\030\006 \003(\r\022\022\n\nu32_values"
|
||||
"\030\007 \003(\r\022\022\n\nu64_values\030\010 \003(\004\022\022\n\nf32_values"
|
||||
"\030\t \003(\002\022\022\n\nf64_values\030\n \003(\001\022\023\n\013bool_value"
|
||||
"s\030\013 \003(\010\022\025\n\rbinary_values\030\014 \003(\014\022\025\n\rstring"
|
||||
"_values\030\r \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017da"
|
||||
"tetime_values\030\017 \003(\003\022\037\n\027timestamp_second_"
|
||||
"values\030\020 \003(\003\022$\n\034timestamp_millisecond_va"
|
||||
"lues\030\021 \003(\003\022$\n\034timestamp_microsecond_valu"
|
||||
"es\030\022 \003(\003\022#\n\033timestamp_nanosecond_values\030"
|
||||
"\023 \003(\003\022\032\n\022time_second_values\030\024 \003(\003\022\037\n\027tim"
|
||||
"e_millisecond_values\030\025 \003(\003\022\037\n\027time_micro"
|
||||
"second_values\030\026 \003(\003\022\036\n\026time_nanosecond_v"
|
||||
"alues\030\027 \003(\003\022\"\n\032interval_year_month_value"
|
||||
"s\030\030 \003(\005\022 \n\030interval_day_time_values\030\031 \003("
|
||||
"\003\022I\n\036interval_month_day_nano_values\030\032 \003("
|
||||
"\0132!.greptime.v1.IntervalMonthDayNano\022\036\n\026"
|
||||
"duration_second_values\030\033 \003(\003\022#\n\033duration"
|
||||
"_millisecond_values\030\034 \003(\003\022#\n\033duration_mi"
|
||||
"crosecond_values\030\035 \003(\003\022\"\n\032duration_nanos"
|
||||
"econd_values\030\036 \003(\003BP\n\016io.greptime.v1B\007Co"
|
||||
"lumnsZ5github.com/GreptimeTeam/greptime-"
|
||||
"proto/go/greptime/v1b\006proto3"
|
||||
"v1.ColumnDataType\022@\n\022datatype_extension\030"
|
||||
"\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens"
|
||||
"ion\032\242\007\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022\n\ni16"
|
||||
"_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022\n\ni64"
|
||||
"_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n\nu16_"
|
||||
"values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n\nu64_"
|
||||
"values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n\nf64_"
|
||||
"values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025\n\rbin"
|
||||
"ary_values\030\014 \003(\014\022\025\n\rstring_values\030\r \003(\t\022"
|
||||
"\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_values\030"
|
||||
"\017 \003(\003\022\037\n\027timestamp_second_values\030\020 \003(\003\022$"
|
||||
"\n\034timestamp_millisecond_values\030\021 \003(\003\022$\n\034"
|
||||
"timestamp_microsecond_values\030\022 \003(\003\022#\n\033ti"
|
||||
"mestamp_nanosecond_values\030\023 \003(\003\022\032\n\022time_"
|
||||
"second_values\030\024 \003(\003\022\037\n\027time_millisecond_"
|
||||
"values\030\025 \003(\003\022\037\n\027time_microsecond_values\030"
|
||||
"\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003(\003\022\"\n"
|
||||
"\032interval_year_month_values\030\030 \003(\005\022 \n\030int"
|
||||
"erval_day_time_values\030\031 \003(\003\022I\n\036interval_"
|
||||
"month_day_nano_values\030\032 \003(\0132!.greptime.v"
|
||||
"1.IntervalMonthDayNano\022\036\n\026duration_secon"
|
||||
"d_values\030\033 \003(\003\022#\n\033duration_millisecond_v"
|
||||
"alues\030\034 \003(\003\022#\n\033duration_microsecond_valu"
|
||||
"es\030\035 \003(\003\022\"\n\032duration_nanosecond_values\030\036"
|
||||
" \003(\003\0222\n\021decimal128_values\030\037 \003(\0132\027.grepti"
|
||||
"me.v1.Decimal128BP\n\016io.greptime.v1B\007Colu"
|
||||
"mnsZ5github.com/GreptimeTeam/greptime-pr"
|
||||
"oto/go/greptime/v1b\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps[1] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcolumn_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcolumn_2eproto = {
|
||||
false, false, 1228, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto,
|
||||
false, false, 1346, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto,
|
||||
"greptime/v1/column.proto",
|
||||
&descriptor_table_greptime_2fv1_2fcolumn_2eproto_once, descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps, 1, 2,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets,
|
||||
@@ -233,6 +240,9 @@ class Column_Values::_Internal {
|
||||
void Column_Values::clear_interval_month_day_nano_values() {
|
||||
_impl_.interval_month_day_nano_values_.Clear();
|
||||
}
|
||||
void Column_Values::clear_decimal128_values() {
|
||||
_impl_.decimal128_values_.Clear();
|
||||
}
|
||||
Column_Values::Column_Values(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -297,6 +307,7 @@ Column_Values::Column_Values(const Column_Values& from)
|
||||
, /*decltype(_impl_._duration_microsecond_values_cached_byte_size_)*/{0}
|
||||
, decltype(_impl_.duration_nanosecond_values_){from._impl_.duration_nanosecond_values_}
|
||||
, /*decltype(_impl_._duration_nanosecond_values_cached_byte_size_)*/{0}
|
||||
, decltype(_impl_.decimal128_values_){from._impl_.decimal128_values_}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
@@ -362,6 +373,7 @@ inline void Column_Values::SharedCtor(
|
||||
, /*decltype(_impl_._duration_microsecond_values_cached_byte_size_)*/{0}
|
||||
, decltype(_impl_.duration_nanosecond_values_){arena}
|
||||
, /*decltype(_impl_._duration_nanosecond_values_cached_byte_size_)*/{0}
|
||||
, decltype(_impl_.decimal128_values_){arena}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
@@ -407,6 +419,7 @@ inline void Column_Values::SharedDtor() {
|
||||
_impl_.duration_millisecond_values_.~RepeatedField();
|
||||
_impl_.duration_microsecond_values_.~RepeatedField();
|
||||
_impl_.duration_nanosecond_values_.~RepeatedField();
|
||||
_impl_.decimal128_values_.~RepeatedPtrField();
|
||||
}
|
||||
|
||||
void Column_Values::SetCachedSize(int size) const {
|
||||
@@ -449,6 +462,7 @@ void Column_Values::Clear() {
|
||||
_impl_.duration_millisecond_values_.Clear();
|
||||
_impl_.duration_microsecond_values_.Clear();
|
||||
_impl_.duration_nanosecond_values_.Clear();
|
||||
_impl_.decimal128_values_.Clear();
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
@@ -797,6 +811,19 @@ const char* Column_Values::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// repeated .greptime.v1.Decimal128 decimal128_values = 31;
|
||||
case 31:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 250)) {
|
||||
ptr -= 2;
|
||||
do {
|
||||
ptr += 2;
|
||||
ptr = ctx->ParseMessage(_internal_add_decimal128_values(), ptr);
|
||||
CHK_(ptr);
|
||||
if (!ctx->DataAvailable(ptr)) break;
|
||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<250>(ptr));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -1081,6 +1108,14 @@ uint8_t* Column_Values::_InternalSerialize(
|
||||
}
|
||||
}
|
||||
|
||||
// repeated .greptime.v1.Decimal128 decimal128_values = 31;
|
||||
for (unsigned i = 0,
|
||||
n = static_cast<unsigned>(this->_internal_decimal128_values_size()); i < n; i++) {
|
||||
const auto& repfield = this->_internal_decimal128_values(i);
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(31, 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);
|
||||
@@ -1489,6 +1524,13 @@ size_t Column_Values::ByteSizeLong() const {
|
||||
total_size += data_size;
|
||||
}
|
||||
|
||||
// repeated .greptime.v1.Decimal128 decimal128_values = 31;
|
||||
total_size += 2UL * this->_internal_decimal128_values_size();
|
||||
for (const auto& msg : this->_impl_.decimal128_values_) {
|
||||
total_size +=
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
@@ -1537,6 +1579,7 @@ void Column_Values::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
|
||||
_this->_impl_.duration_millisecond_values_.MergeFrom(from._impl_.duration_millisecond_values_);
|
||||
_this->_impl_.duration_microsecond_values_.MergeFrom(from._impl_.duration_microsecond_values_);
|
||||
_this->_impl_.duration_nanosecond_values_.MergeFrom(from._impl_.duration_nanosecond_values_);
|
||||
_this->_impl_.decimal128_values_.MergeFrom(from._impl_.decimal128_values_);
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
@@ -1584,6 +1627,7 @@ void Column_Values::InternalSwap(Column_Values* other) {
|
||||
_impl_.duration_millisecond_values_.InternalSwap(&other->_impl_.duration_millisecond_values_);
|
||||
_impl_.duration_microsecond_values_.InternalSwap(&other->_impl_.duration_microsecond_values_);
|
||||
_impl_.duration_nanosecond_values_.InternalSwap(&other->_impl_.duration_nanosecond_values_);
|
||||
_impl_.decimal128_values_.InternalSwap(&other->_impl_.decimal128_values_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata Column_Values::GetMetadata() const {
|
||||
@@ -1597,12 +1641,23 @@ void Column_Values::InternalSwap(Column_Values* other) {
|
||||
class Column::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::Column_Values& values(const Column* msg);
|
||||
static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const Column* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::Column_Values&
|
||||
Column::_Internal::values(const Column* msg) {
|
||||
return *msg->_impl_.values_;
|
||||
}
|
||||
const ::greptime::v1::ColumnDataTypeExtension&
|
||||
Column::_Internal::datatype_extension(const Column* msg) {
|
||||
return *msg->_impl_.datatype_extension_;
|
||||
}
|
||||
void Column::clear_datatype_extension() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) {
|
||||
delete _impl_.datatype_extension_;
|
||||
}
|
||||
_impl_.datatype_extension_ = nullptr;
|
||||
}
|
||||
Column::Column(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -1616,6 +1671,7 @@ Column::Column(const Column& from)
|
||||
decltype(_impl_.column_name_){}
|
||||
, decltype(_impl_.null_mask_){}
|
||||
, decltype(_impl_.values_){nullptr}
|
||||
, decltype(_impl_.datatype_extension_){nullptr}
|
||||
, decltype(_impl_.semantic_type_){}
|
||||
, decltype(_impl_.datatype_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
@@ -1640,6 +1696,9 @@ Column::Column(const Column& from)
|
||||
if (from._internal_has_values()) {
|
||||
_this->_impl_.values_ = new ::greptime::v1::Column_Values(*from._impl_.values_);
|
||||
}
|
||||
if (from._internal_has_datatype_extension()) {
|
||||
_this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_);
|
||||
}
|
||||
::memcpy(&_impl_.semantic_type_, &from._impl_.semantic_type_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.datatype_) -
|
||||
reinterpret_cast<char*>(&_impl_.semantic_type_)) + sizeof(_impl_.datatype_));
|
||||
@@ -1654,6 +1713,7 @@ inline void Column::SharedCtor(
|
||||
decltype(_impl_.column_name_){}
|
||||
, decltype(_impl_.null_mask_){}
|
||||
, decltype(_impl_.values_){nullptr}
|
||||
, decltype(_impl_.datatype_extension_){nullptr}
|
||||
, decltype(_impl_.semantic_type_){0}
|
||||
, decltype(_impl_.datatype_){0}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
@@ -1682,6 +1742,7 @@ inline void Column::SharedDtor() {
|
||||
_impl_.column_name_.Destroy();
|
||||
_impl_.null_mask_.Destroy();
|
||||
if (this != internal_default_instance()) delete _impl_.values_;
|
||||
if (this != internal_default_instance()) delete _impl_.datatype_extension_;
|
||||
}
|
||||
|
||||
void Column::SetCachedSize(int size) const {
|
||||
@@ -1700,6 +1761,10 @@ void Column::Clear() {
|
||||
delete _impl_.values_;
|
||||
}
|
||||
_impl_.values_ = nullptr;
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) {
|
||||
delete _impl_.datatype_extension_;
|
||||
}
|
||||
_impl_.datatype_extension_ = nullptr;
|
||||
::memset(&_impl_.semantic_type_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&_impl_.datatype_) -
|
||||
reinterpret_cast<char*>(&_impl_.semantic_type_)) + sizeof(_impl_.datatype_));
|
||||
@@ -1757,6 +1822,14 @@ const char* Column::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 6;
|
||||
case 6:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -1823,6 +1896,13 @@ uint8_t* Column::_InternalSerialize(
|
||||
5, this->_internal_datatype(), target);
|
||||
}
|
||||
|
||||
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 6;
|
||||
if (this->_internal_has_datatype_extension()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(6, _Internal::datatype_extension(this),
|
||||
_Internal::datatype_extension(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);
|
||||
@@ -1860,6 +1940,13 @@ size_t Column::ByteSizeLong() const {
|
||||
*_impl_.values_);
|
||||
}
|
||||
|
||||
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 6;
|
||||
if (this->_internal_has_datatype_extension()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.datatype_extension_);
|
||||
}
|
||||
|
||||
// .greptime.v1.SemanticType semantic_type = 2;
|
||||
if (this->_internal_semantic_type() != 0) {
|
||||
total_size += 1 +
|
||||
@@ -1900,6 +1987,10 @@ void Column::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU
|
||||
_this->_internal_mutable_values()->::greptime::v1::Column_Values::MergeFrom(
|
||||
from._internal_values());
|
||||
}
|
||||
if (from._internal_has_datatype_extension()) {
|
||||
_this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom(
|
||||
from._internal_datatype_extension());
|
||||
}
|
||||
if (from._internal_semantic_type() != 0) {
|
||||
_this->_internal_set_semantic_type(from._internal_semantic_type());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user