File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
public/lib/ydb_cli/commands Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ class TWorkloadParams {
178178 }
179179 virtual TString GetWorkloadName () const = 0;
180180
181- virtual void Validate () const {};
181+ virtual void Validate (int /* workloadType */ ) const {};
182182public:
183183 ui64 BulkSize = 10000 ;
184184 std::string DbPath;
Original file line number Diff line number Diff line change @@ -398,7 +398,11 @@ void TLogWorkloadParams::ConfigureOptsFillData(NLastGetopt::TOpts& opts) {
398398 .DefaultValue (NullPercent).StoreResult (&NullPercent);
399399}
400400
401- void TLogWorkloadParams::Validate () const {
401+ void TLogWorkloadParams::Validate (int workloadType) const {
402+ if (static_cast <TLogGenerator::EType>(workloadType) == TLogGenerator::EType::Select) {
403+ return ;
404+ }
405+
402406 const bool timestampDevPassed = TimestampStandardDeviationMinutes;
403407 const bool dateFromPassed = !!TimestampDateFrom;
404408 const bool dateToPassed = !!TimestampDateTo;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class TLogWorkloadParams : public TWorkloadParams {
3737 YDB_READONLY (EStoreType, StoreType, EStoreType::Row);
3838 TWorkloadDataInitializer::TList CreateDataInitializers () const override ;
3939
40- void Validate () const override ;
40+ void Validate (int workloadType ) const override ;
4141private:
4242 void ConfigureOptsFillData (NLastGetopt::TOpts& opts);
4343 void ConfigureOptsColumns (NLastGetopt::TOpts& opts);
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ int TWorkloadCommandRun::Run(TConfig& config) {
351351 PrepareForRun (config);
352352 Params.DbPath = config.Database ;
353353 auto workloadGen = Params.CreateGenerator ();
354- Params.Validate ();
354+ Params.Validate (Type );
355355 return RunWorkload (*workloadGen, Type);
356356}
357357
You can’t perform that action at this time.
0 commit comments