Skip to content

Commit 32fc06f

Browse files
authored
YDB FQ: Connector filtering modes (#9778)
1 parent d0dc4a9 commit 32fc06f

File tree

1 file changed

+16
-0
lines changed
  • ydb/library/yql/providers/generic/connector/api/service/protos

1 file changed

+16
-0
lines changed

ydb/library/yql/providers/generic/connector/api/service/protos/connector.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,22 @@ message TReadSplitsRequest {
235235
// If empty, the connector will return the split data from the very beginning.
236236
TContinuation continuation = 6;
237237

238+
enum EFiltering {
239+
FILTERING_UNSPECIFIED = 0;
240+
// If Connector cannot push down the predicate to the data source completely
241+
// (due to the lack of data type support, for example), it doesn't apply filter at all
242+
// and returns the full result of `SELECT columns FROM table` (no WHERE clause).
243+
// It's YDB's duty to filter the output on its own side.
244+
FILTERING_OPTIONAL = 1;
245+
// If Connector cannot push down the predicate to the data source completely,
246+
// it terminates the request and returns an error.
247+
FILTERING_MANDATORY = 2;
248+
}
249+
250+
// Determines various modes of server behavior in the context of predicate pushdown.
251+
// If not set, the default value is `FILTERING_OPTIONAL`.
252+
EFiltering filtering = 7;
253+
238254
reserved 5;
239255
}
240256

0 commit comments

Comments
 (0)