File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
yt_proto/yt/client/api/rpc_proxy/proto Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,8 @@ struct TSelectRowsOptionsBase
144
144
ui64 RangeExpansionLimit = 200000 ;
145
145
// ! Limits maximum parallel subqueries.
146
146
int MaxSubqueries = std::numeric_limits<int >::max();
147
+ // ! Limits parallel subqueries by row count.
148
+ ui64 MinRowCountPerSubquery = 100'000 ;
147
149
// ! Path in Cypress with UDFs.
148
150
std::optional<TString> UdfRegistryPath;
149
151
// ! If |true| then logging is more verbose.
Original file line number Diff line number Diff line change @@ -392,6 +392,14 @@ void TSelectRowsCommandBase<
392
392
.GreaterThan (0 )
393
393
.Optional (/* init*/ false );
394
394
395
+ registrar.template ParameterWithUniversalAccessor <ui64>(
396
+ " min_row_count_per_subquery" ,
397
+ [] (TThis* command) -> auto & {
398
+ return command->Options .MinRowCountPerSubquery ;
399
+ })
400
+ .GreaterThan (0 )
401
+ .Optional (/* init*/ false );
402
+
395
403
registrar.template ParameterWithUniversalAccessor <std::optional<TString>>(
396
404
" udf_registry_path" ,
397
405
[] (TThis* command) -> auto & {
Original file line number Diff line number Diff line change @@ -638,6 +638,7 @@ message TReqSelectRows
638
638
optional int32 execution_backend = 23 ; // EExecutionBackend
639
639
optional NYT.NTableClient.NProto.TVersionedReadOptions versioned_read_options = 25 ;
640
640
optional bool use_lookup_cache = 26 ;
641
+ optional int64 min_row_count_per_subquery = 27 ;
641
642
642
643
optional TSuppressableAccessTrackingOptions suppressable_access_tracking_options = 104 ;
643
644
@@ -836,6 +837,7 @@ message TReqExplainQuery
836
837
optional string execution_pool = 11 ;
837
838
optional bool new_range_inference = 12 ;
838
839
optional int32 syntax_version = 13 [default = 1 ];
840
+ optional int64 min_row_count_per_subquery = 14 ;
839
841
}
840
842
841
843
message TRspExplainQuery
You can’t perform that action at this time.
0 commit comments