Skip to content

Commit

Permalink
fill filter predicate to fix pq tests (#10688)
Browse files Browse the repository at this point in the history
  • Loading branch information
uzhastik authored Oct 22, 2024
1 parent 8b24d79 commit 2b0ccd7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ydb/library/yql/providers/pq/provider/yql_pq_dq_integration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ class TPqDqIntegration: public TDqIntegrationBase {
columns = ctx.NewList(pos, std::move(cols));
}

auto row = Build<TCoArgument>(ctx, read->Pos())
.Name("row")
.Done();
auto emptyPredicate = Build<TCoLambda>(ctx, read->Pos())
.Args({row})
.Body<TCoBool>()
.Literal().Build("true")
.Build()
.Done().Ptr();

return Build<TDqSourceWrap>(ctx, read->Pos())
.Input<TDqPqTopicSource>()
.World(pqReadTopic.World())
Expand All @@ -138,6 +148,7 @@ class TPqDqIntegration: public TDqIntegrationBase {
.Token<TCoSecureParam>()
.Name().Build(token)
.Build()
.FilterPredicate(emptyPredicate)
.Build()
.RowType(ExpandType(pqReadTopic.Pos(), *rowType, ctx))
.DataSource(pqReadTopic.DataSource().Cast<TCoDataSource>())
Expand Down

0 comments on commit 2b0ccd7

Please sign in to comment.