File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
yt/yt/client/table_client Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,10 @@ void TDictionaryCompressionConfig::Register(TRegistrar registrar)
289
289
.Default (0.7 )
290
290
.InRange (0 , 1 );
291
291
292
+ registrar.Parameter (" elect_random_policy" , &TThis::ElectRandomPolicy)
293
+ .Default (false )
294
+ .DontSerializeDefault ();
295
+
292
296
registrar.Postprocessor ([] (TThis* config) {
293
297
if (config->DesiredSampleCount > config->MaxProcessedSampleCount ) {
294
298
THROW_ERROR_EXCEPTION (" \" desired_sample_count\" cannot be greater than \" max_processed_sample_count\" " );
Original file line number Diff line number Diff line change @@ -251,6 +251,9 @@ struct TDictionaryCompressionConfig
251
251
// ! Upper limit on acceptable compression ratio. No chunk compression is performed if this limit is exceeded.
252
252
double MaxAcceptableCompressionRatio;
253
253
254
+ // ! For testing purposes only.
255
+ bool ElectRandomPolicy;
256
+
254
257
REGISTER_YSON_STRUCT (TDictionaryCompressionConfig);
255
258
256
259
static void Register (TRegistrar registrar);
You can’t perform that action at this time.
0 commit comments