@@ -3486,12 +3486,8 @@ bool ValidateStreamLookupJoinFlags(const TDqJoin& join, TExprContext& ctx) {
3486
3486
}
3487
3487
3488
3488
if (!rightAny) {
3489
- if (false ) { // Temporarily change to warning to allow for smooth transition
3490
- ctx.AddError (TIssue (ctx.GetPosition (join.Pos ()), " Streamlookup: must be LEFT JOIN /*+streamlookup(...)*/ ANY" ));
3491
- return false ;
3492
- } else {
3493
- ctx.AddWarning (TIssue (ctx.GetPosition (join.Pos ()), " (Deprecation) Streamlookup: must be LEFT JOIN /*+streamlookup(...)*/ ANY" ));
3494
- }
3489
+ ctx.AddError (TIssue (ctx.GetPosition (join.Pos ()), " Streamlookup: must be LEFT JOIN /*+streamlookup(...)*/ ANY" ));
3490
+ return false ;
3495
3491
}
3496
3492
3497
3493
return true ;
@@ -3505,7 +3501,6 @@ TMaybeNode<TExprBase> DqRewriteStreamLookupJoin(TExprBase node, TExprContext& ct
3505
3501
return node;
3506
3502
}
3507
3503
3508
- const auto pos = node.Pos ();
3509
3504
const auto left = join.LeftInput ().Maybe <TDqConnection>();
3510
3505
if (!left) {
3511
3506
return node;
@@ -3534,19 +3529,25 @@ TMaybeNode<TExprBase> DqRewriteStreamLookupJoin(TExprBase node, TExprContext& ct
3534
3529
}
3535
3530
}
3536
3531
3532
+ const auto pos = node.Pos ();
3533
+
3537
3534
if (!ttl) {
3538
3535
ttl = ctx.NewAtom (pos, 300 );
3539
3536
}
3537
+
3540
3538
if (!maxCachedRows) {
3541
3539
maxCachedRows = ctx.NewAtom (pos, 1'000'000 );
3542
3540
}
3541
+
3543
3542
if (!maxDelayedRows) {
3544
3543
maxDelayedRows = ctx.NewAtom (pos, 1'000'000 );
3545
3544
}
3545
+
3546
3546
auto rightInput = join.RightInput ().Ptr ();
3547
3547
if (auto maybe = TExprBase (rightInput).Maybe <TCoExtractMembers>()) {
3548
3548
rightInput = maybe.Cast ().Input ().Ptr ();
3549
3549
}
3550
+
3550
3551
auto leftLabel = join.LeftLabel ().Maybe <NNodes::TCoAtom>() ? join.LeftLabel ().Cast <NNodes::TCoAtom>().Ptr () : ctx.NewAtom (pos, " " );
3551
3552
Y_ENSURE (join.RightLabel ().Maybe <NNodes::TCoAtom>());
3552
3553
auto cn = Build<TDqCnStreamLookup>(ctx, pos)
0 commit comments