Skip to content

Commit

Permalink
Inspector: workload dict without metrics and reporting - catch missin…
Browse files Browse the repository at this point in the history
…g values
  • Loading branch information
perdelt committed Jun 30, 2022
1 parent 398d9ce commit 7459ed5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dbmsbenchmarker/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,12 @@ def load_experiment(self, code, anonymize=None, load=True):
self.e = evaluator.evaluator(self.benchmarks, load=load, force=True)
self.workload = copy.deepcopy(self.e.evaluation['general'])
# remove metrics
del(self.workload['loadingmetrics'])
del(self.workload['streamingmetrics'])
del(self.workload['reporting'])
if 'loadingmetrics' in self.workload:
del(self.workload['loadingmetrics'])
if 'streamingmetrics' in self.workload:
del(self.workload['streamingmetrics'])
if 'reporting' in self.workload:
del(self.workload['reporting'])
def get_experiment_list_queries(self):
# list of successful queries
return self.benchmarks.listQueries()
Expand Down

0 comments on commit 7459ed5

Please sign in to comment.