Skip to content

Commit 346c71f

Browse files
authored
Revert adding FilterPredicate (#10763)
1 parent 34bc19c commit 346c71f

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

ydb/library/yql/providers/pq/expr_nodes/yql_pq_expr_nodes.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@
7171
{"Index": 1, "Name": "Topic", "Type": "TPqTopic"},
7272
{"Index": 2, "Name": "Columns", "Type": "TExprBase"},
7373
{"Index": 3, "Name": "Settings", "Type": "TCoNameValueTupleList"},
74-
{"Index": 4, "Name": "Token", "Type": "TCoSecureParam"},
75-
{"Index": 5, "Name": "FilterPredicate", "Type": "TCoLambda"}
74+
{"Index": 4, "Name": "Token", "Type": "TCoSecureParam"}
7675
]
7776
},
7877
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class TPqDataSourceTypeAnnotationTransformer : public TVisitorTransformerBase {
131131
}
132132

133133
TStatus HandleDqTopicSource(TExprBase input, TExprContext& ctx) {
134-
if (!EnsureArgsCount(input.Ref(), 6, ctx)) {
134+
if (!EnsureArgsCount(input.Ref(), 5, ctx)) {
135135
return TStatus::Error;
136136
}
137137

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,6 @@ 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-
142132
return Build<TDqSourceWrap>(ctx, read->Pos())
143133
.Input<TDqPqTopicSource>()
144134
.World(pqReadTopic.World())
@@ -148,7 +138,6 @@ class TPqDqIntegration: public TDqIntegrationBase {
148138
.Token<TCoSecureParam>()
149139
.Name().Build(token)
150140
.Build()
151-
.FilterPredicate(emptyPredicate)
152141
.Build()
153142
.RowType(ExpandType(pqReadTopic.Pos(), *rowType, ctx))
154143
.DataSource(pqReadTopic.DataSource().Cast<TCoDataSource>())

0 commit comments

Comments
 (0)