@@ -2687,6 +2687,11 @@ TChangefeedDescription& TChangefeedDescription::WithVirtualTimestamps() {
26872687 return *this ;
26882688}
26892689
2690+ TChangefeedDescription& TChangefeedDescription::WithSchemaChanges () {
2691+ SchemaChanges_ = true ;
2692+ return *this ;
2693+ }
2694+
26902695TChangefeedDescription& TChangefeedDescription::WithResolvedTimestamps (const TDuration& value) {
26912696 ResolvedTimestamps_ = value;
26922697 return *this ;
@@ -2742,6 +2747,10 @@ bool TChangefeedDescription::GetVirtualTimestamps() const {
27422747 return VirtualTimestamps_;
27432748}
27442749
2750+ bool TChangefeedDescription::GetSchemaChanges () const {
2751+ return SchemaChanges_;
2752+ }
2753+
27452754const std::optional<TDuration>& TChangefeedDescription::GetResolvedTimestamps () const {
27462755 return ResolvedTimestamps_;
27472756}
@@ -2806,6 +2815,9 @@ TChangefeedDescription TChangefeedDescription::FromProto(const TProto& proto) {
28062815 if (proto.virtual_timestamps ()) {
28072816 ret.WithVirtualTimestamps ();
28082817 }
2818+ if (proto.schema_changes ()) {
2819+ ret.WithSchemaChanges ();
2820+ }
28092821 if (proto.has_resolved_timestamps_interval ()) {
28102822 ret.WithResolvedTimestamps (TDuration::MilliSeconds (
28112823 ::google::protobuf::util::TimeUtil::DurationToMilliseconds (proto.resolved_timestamps_interval())));
@@ -2849,6 +2861,7 @@ template <typename TProto>
28492861void TChangefeedDescription::SerializeCommonFields (TProto& proto) const {
28502862 proto.set_name (TStringType{Name_});
28512863 proto.set_virtual_timestamps (VirtualTimestamps_);
2864+ proto.set_schema_changes (SchemaChanges_);
28522865 proto.set_aws_region (TStringType{AwsRegion_});
28532866
28542867 switch (Mode_) {
@@ -2932,7 +2945,8 @@ void TChangefeedDescription::Out(IOutputStream& o) const {
29322945 o << " { name: \" " << Name_ << " \" "
29332946 << " , mode: " << Mode_ << " "
29342947 << " , format: " << Format_ << " "
2935- << " , virtual_timestamps: " << (VirtualTimestamps_ ? " on" : " off" ) << " " ;
2948+ << " , virtual_timestamps: " << (VirtualTimestamps_ ? " on" : " off" ) << " "
2949+ << " , schema_changes: " << (SchemaChanges_ ? " on" : " off" ) << " " ;
29362950
29372951 if (ResolvedTimestamps_) {
29382952 o << " , resolved_timestamps: " << *ResolvedTimestamps_;
@@ -2958,6 +2972,7 @@ bool operator==(const TChangefeedDescription& lhs, const TChangefeedDescription&
29582972 && lhs.GetMode () == rhs.GetMode ()
29592973 && lhs.GetFormat () == rhs.GetFormat ()
29602974 && lhs.GetVirtualTimestamps () == rhs.GetVirtualTimestamps ()
2975+ && lhs.GetSchemaChanges () == rhs.GetSchemaChanges ()
29612976 && lhs.GetResolvedTimestamps () == rhs.GetResolvedTimestamps ()
29622977 && lhs.GetAwsRegion () == rhs.GetAwsRegion ();
29632978}
0 commit comments