Skip to content

Commit

Permalink
extra compilation fix for ydb-platform#12363
Browse files Browse the repository at this point in the history
  • Loading branch information
zinal committed Dec 6, 2024
1 parent 5cc32e7 commit d57ac2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ydb/core/kqp/opt/logical/kqp_opt_log_ranges.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,22 @@ TExprBase KqpPushPredicateToReadTable(TExprBase node, TExprContext& ctx, const T
YQL_ENSURE(kqpCtx.Config->EnableKqpScanQueryStreamLookup);
auto lookupKeys = BuildEquiRangeLookup(keyRange, tableDesc, read.Pos(), ctx);

TKqpStreamLookupSettings settings;
settings.Strategy = EStreamLookupStrategyType::LookupRows;
if (indexName) {
readInput = Build<TKqlStreamLookupIndex>(ctx, read.Pos())
.Table(read.Table())
.LookupKeys(lookupKeys)
.Columns(read.Columns())
.Index(indexName.Cast())
.Settings(settings.BuildNode(ctx, read.Pos()))
.Done();
} else {
readInput = Build<TKqlStreamLookupTable>(ctx, read.Pos())
.Table(read.Table())
.LookupKeys(lookupKeys)
.Columns(read.Columns())
.LookupStrategy().Build(TKqpStreamLookupStrategyName)
.Settings(settings.BuildNode(ctx, read.Pos()))
.Done();
}
} else {
Expand Down

0 comments on commit d57ac2e

Please sign in to comment.