@@ -13,11 +13,14 @@ option go_package = "a.yandex-team.ru/contrib/ydb/library/yql/providers/generic/
13
13
14
14
// TListTablesRequest requests the list of tables in a particular database of the data source
15
15
message TListTablesRequest {
16
+ // This message have never been used in YDB - Connector interaction.
17
+ option deprecated = true ;
18
+
16
19
// Data source instance to connect
17
20
NYql.TGenericDataSourceInstance data_source_instance = 1 ;
18
21
19
22
// There may be a huge number of tables in the data source,
20
- // and here are ways to extract only necessary ones:
23
+ // and here are the ways to extract only necessary ones:
21
24
oneof filtering {
22
25
// Regexp to filter table names
23
26
string pattern = 2 ;
@@ -26,6 +29,9 @@ message TListTablesRequest {
26
29
27
30
// TListTablesResponse returns the list of tables in a particular database of the data source
28
31
message TListTablesResponse {
32
+ // This message have never been used in YDB - Connector interaction.
33
+ option deprecated = true ;
34
+
29
35
// Table names list
30
36
repeated string tables = 1 ;
31
37
@@ -37,7 +43,8 @@ message TListTablesResponse {
37
43
message TDescribeTableRequest {
38
44
// Data source instance to connect
39
45
NYql.TGenericDataSourceInstance data_source_instance = 1 ;
40
- // Table to describe
46
+ // Table name to describe.
47
+ // Should be equivalent to the name in TFrom filled in TListSplitsRequest and TReadSplitsRequest.
41
48
string table = 2 ;
42
49
// Rules for type mapping
43
50
TTypeMappingSettings type_mapping_settings = 3 ;
@@ -54,7 +61,6 @@ enum EDateTimeFormat {
54
61
YQL_FORMAT = 2 ;
55
62
}
56
63
57
-
58
64
// TDescribeTableResponse returns table metadata
59
65
message TDescribeTableResponse {
60
66
// The whole schema of a table
@@ -157,9 +163,7 @@ message TSelect {
157
163
// Strongly typed tree of predicates
158
164
TPredicate filter_typed = 1 ;
159
165
160
- // An internal representation of YQL request part describing filters.
161
- // Advanced connectors may use it for the full-fledged implementations of the push down.
162
- TAst filter_raw = 2 ;
166
+ reserved 2 ;
163
167
}
164
168
165
169
// Transforms into WHERE $filter.
@@ -177,8 +181,8 @@ message TSelect {
177
181
178
182
// For schemaless data sources, when it's hard for us to infer schema for the query result,
179
183
// user can supply the schema himself.
180
- // Optional field that must be empty for schematized data sources .
181
- TSchema predefined_schema = 6 ;
184
+ // This field was used for some outdated experiments with S3 connector. Never try to fill them .
185
+ TSchema predefined_schema = 6 [ deprecated = true ] ;
182
186
}
183
187
184
188
// Split is a certain part of a table. In general, it should be much smaller than a partition.
@@ -193,6 +197,9 @@ message TSplit {
193
197
// so we make the description opaque for YQ.
194
198
bytes description = 2 ;
195
199
}
200
+
201
+ // The ordered number in the split sequence generated in response to the `ListSplits` call
202
+ uint64 id = 3 ;
196
203
}
197
204
198
205
// ReadDataRequest reads the data associated with a particular table split.
@@ -495,17 +502,4 @@ message TError {
495
502
// Detailed explanation of a problem;
496
503
// must be empty if status == SUCCESS
497
504
repeated Ydb.Issue.IssueMessage issues = 3 ;
498
- }
499
-
500
- // TAst is an internal representation of an YQL request.
501
- // Advanced connectors may use it for the full-fledged implementations of the push down.
502
- message TAst {
503
- message TList {
504
- repeated TAst children = 1 ;
505
- }
506
-
507
- oneof payload {
508
- bytes atom = 1 ;
509
- TList list = 2 ;
510
- }
511
- }
505
+ }
0 commit comments