Skip to content

Commit 2b0ccd7

Browse files
authored
fill filter predicate to fix pq tests (#10688)
1 parent 8b24d79 commit 2b0ccd7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ydb/library/yql/providers/pq/provider/yql_pq_dq_integration.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,16 @@ class TPqDqIntegration: public TDqIntegrationBase {
129129
columns = ctx.NewList(pos, std::move(cols));
130130
}
131131

132+
auto row = Build<TCoArgument>(ctx, read->Pos())
133+
.Name("row")
134+
.Done();
135+
auto emptyPredicate = Build<TCoLambda>(ctx, read->Pos())
136+
.Args({row})
137+
.Body<TCoBool>()
138+
.Literal().Build("true")
139+
.Build()
140+
.Done().Ptr();
141+
132142
return Build<TDqSourceWrap>(ctx, read->Pos())
133143
.Input<TDqPqTopicSource>()
134144
.World(pqReadTopic.World())
@@ -138,6 +148,7 @@ class TPqDqIntegration: public TDqIntegrationBase {
138148
.Token<TCoSecureParam>()
139149
.Name().Build(token)
140150
.Build()
151+
.FilterPredicate(emptyPredicate)
141152
.Build()
142153
.RowType(ExpandType(pqReadTopic.Pos(), *rowType, ctx))
143154
.DataSource(pqReadTopic.DataSource().Cast<TCoDataSource>())

0 commit comments

Comments
 (0)