@@ -1894,9 +1894,14 @@ TMaybe<TStringContent> StringContentOrIdContent(TContext& ctx, TPosition pos, co
18941894 (ctx.AnsiQuotedIdentifiers && input.StartsWith (' "' ))? EStringContentMode::AnsiIdent : EStringContentMode::Default);
18951895}
18961896
1897- TTtlSettings::TTtlSettings (const TIdentifier& columnName, const TNodePtr& expr, const TMaybe<EUnit>& columnUnit)
1897+ TTtlSettings::TTierSettings::TTierSettings (const TNodePtr& evictionDelay, const std::optional<TIdentifier>& storageName)
1898+ : EvictionDelay(evictionDelay)
1899+ , StorageName(storageName) {
1900+ }
1901+
1902+ TTtlSettings::TTtlSettings (const TIdentifier& columnName, const std::vector<TTierSettings>& tiers, const TMaybe<EUnit>& columnUnit)
18981903 : ColumnName(columnName)
1899- , Expr(expr )
1904+ , Tiers(tiers )
19001905 , ColumnUnit(columnUnit)
19011906{
19021907}
@@ -3131,10 +3136,10 @@ class TCalcOverWindow final: public INode {
31313136 Y_DEBUG_ABORT_UNLESS (FuncNode);
31323137 FuncNode->VisitTree (func, visited);
31333138 }
3134-
3139+
31353140 void CollectPreaggregateExprs (TContext& ctx, ISource& src, TVector<INode::TPtr>& exprs) override {
31363141 if (ctx.DistinctOverWindow ) {
3137- FuncNode->CollectPreaggregateExprs (ctx, src, exprs);
3142+ FuncNode->CollectPreaggregateExprs (ctx, src, exprs);
31383143 } else {
31393144 INode::CollectPreaggregateExprs (ctx, src, exprs);
31403145 }
@@ -3274,7 +3279,7 @@ TSourcePtr TryMakeSourceFromExpression(TPosition pos, TContext& ctx, const TStri
32743279 return nullptr ;
32753280 }
32763281
3277- auto wrappedNode = new TAstListNodeImpl (pos, {
3282+ auto wrappedNode = new TAstListNodeImpl (pos, {
32783283 new TAstAtomNodeImpl (pos, " EvaluateAtom" , TNodeFlags::Default),
32793284 node
32803285 });
@@ -3303,7 +3308,7 @@ void MakeTableFromExpression(TPosition pos, TContext& ctx, TNodePtr node, TDefer
33033308 node = node->Y (" Concat" , node->Y (" String" , node->Q (prefix)), node);
33043309 }
33053310
3306- auto wrappedNode = new TAstListNodeImpl (pos, {
3311+ auto wrappedNode = new TAstListNodeImpl (pos, {
33073312 new TAstAtomNodeImpl (pos, " EvaluateAtom" , TNodeFlags::Default),
33083313 node
33093314 });
@@ -3320,7 +3325,7 @@ TDeferredAtom MakeAtomFromExpression(TPosition pos, TContext& ctx, TNodePtr node
33203325 node = node->Y (" Concat" , node->Y (" String" , node->Q (prefix)), node);
33213326 }
33223327
3323- auto wrappedNode = new TAstListNodeImpl (pos, {
3328+ auto wrappedNode = new TAstListNodeImpl (pos, {
33243329 new TAstAtomNodeImpl (pos, " EvaluateAtom" , TNodeFlags::Default),
33253330 node
33263331 });
@@ -3462,7 +3467,7 @@ bool TVectorIndexSettings::Validate(TContext& ctx) const {
34623467 if (!Distance && !Similarity) {
34633468 ctx.Error () << " either distance or similarity should be set" ;
34643469 return false ;
3465- }
3470+ }
34663471 if (!VectorType) {
34673472 ctx.Error () << " vector_type should be set" ;
34683473 return false ;
0 commit comments