@@ -41,12 +41,32 @@ pub use rustls;
4141pub enum Scenario {
4242 #[ allow( clippy:: upper_case_acronyms) ]
4343 TPCH ,
44+
45+ #[ value( name = "tpch-0.1u-0.1d" ) ]
46+ TPCHWithMutations ,
47+
48+ #[ value( name = "tpch-0.00003" ) ]
49+ TPCHWithMutations2 ,
50+
51+ #[ value( name = "tpch-old" ) ]
52+ TPCHWithMutationsOld ,
53+
54+ #[ value( name = "tpch-old-0.00003" ) ]
55+ TPCHWithMutationsOldMutations ,
56+
57+ #[ value( name = "philip" ) ]
58+ Philip ,
4459}
4560
4661impl Display for Scenario {
4762 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
4863 match self {
4964 Scenario :: TPCH => write ! ( f, "tpch" ) ,
65+ Scenario :: TPCHWithMutations => write ! ( f, "tpch-0.1u-0.1d" ) ,
66+ Scenario :: TPCHWithMutations2 => write ! ( f, "tpch-0.00003" ) ,
67+ Scenario :: TPCHWithMutationsOld => write ! ( f, "tpch-old" ) ,
68+ Scenario :: TPCHWithMutationsOldMutations => write ! ( f, "tpch-old-0.00003" ) ,
69+ Scenario :: Philip => write ! ( f, "philip" ) ,
5070 }
5171 }
5272}
@@ -56,12 +76,22 @@ impl Scenario {
5676 pub fn load_query_set ( & self ) -> anyhow:: Result < QuerySet > {
5777 match self {
5878 Scenario :: TPCH => Ok ( QuerySet :: Tpch ) ,
79+ Scenario :: TPCHWithMutations => Ok ( QuerySet :: Tpch ) ,
80+ Scenario :: TPCHWithMutations2 => Ok ( QuerySet :: Tpch ) ,
81+ Scenario :: TPCHWithMutationsOld => Ok ( QuerySet :: Tpch ) ,
82+ Scenario :: TPCHWithMutationsOldMutations => Ok ( QuerySet :: Tpch ) ,
83+ Scenario :: Philip => Ok ( QuerySet :: Tpch ) ,
5984 }
6085 }
6186
6287 pub fn end_condition ( & self ) -> EndCondition {
6388 match self {
6489 Scenario :: TPCH => EndCondition :: Unlimited ,
90+ Scenario :: TPCHWithMutations => EndCondition :: Unlimited ,
91+ Scenario :: TPCHWithMutations2 => EndCondition :: Unlimited ,
92+ Scenario :: TPCHWithMutationsOld => EndCondition :: Unlimited ,
93+ Scenario :: TPCHWithMutationsOldMutations => EndCondition :: Unlimited ,
94+ Scenario :: Philip => EndCondition :: Unlimited ,
6595 }
6696 }
6797}
0 commit comments