@@ -2945,13 +2945,16 @@ TTtlTierSettings::TTtlTierSettings(const Ydb::Table::TtlTier& tier)
29452945 : EvictionDelay_(TDuration::Seconds(tier.evict_after_seconds())) {
29462946 switch (tier.action_case ()) {
29472947 case Ydb::Table::TtlTier::kDelete :
2948- Action_ = TTtlDeleteAction ();
2949- break ;
2948+ Action_ = TTtlDeleteAction ();
2949+ break ;
29502950 case Ydb::Table::TtlTier::kEvictToExternalStorage :
2951- Action_ = TTtlEvictToExternalStorageAction (tier.evict_to_external_storage ().storage_name ());
2952- break ;
2951+ Action_ = TTtlEvictToExternalStorageAction (tier.evict_to_external_storage ().storage_name ());
2952+ break ;
2953+ case Ydb::Table::TtlTier::kEvictToColumnFamily :
2954+ Action_ = TTtlEvictToExternalStorageAction (tier.evict_to_column_family ().family_name ());
2955+ break ;
29532956 case Ydb::Table::TtlTier::ACTION_NOT_SET:
2954- break ;
2957+ break ;
29552958 }
29562959}
29572960
@@ -2962,8 +2965,10 @@ void TTtlTierSettings::SerializeTo(Ydb::Table::TtlTier& proto) const {
29622965 using T = std::decay_t <decltype (action)>;
29632966 if constexpr (std::is_same_v<T, TTtlDeleteAction>) {
29642967 proto.mutable_delete_ ();
2965- } else if constexpr (std::is_same_v<T, TExplicitPartitions >) {
2968+ } else if constexpr (std::is_same_v<T, TTtlEvictToExternalStorageAction >) {
29662969 proto.mutable_evict_to_external_storage ()->set_storage_name (action.StorageName );
2970+ } else if constexpr (std::is_same_v<T, TTtlEvictToColumnFamilyAction>) {
2971+ proto.mutable_evict_to_column_family ()->set_storage_name (action.FamilyName );
29672972 }
29682973 };
29692974 std::visit (std::move (actionVisitor), Action_);
0 commit comments