fix unit test

This commit is contained in:
yangdsh 2020-04-22 14:58:31 +00:00 committed by Dana Van Aken
parent 77eb5cdb42
commit 93d6fa5339
1 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ def aggregate_data(wkld_results):
return knob_data, metric_data return knob_data, metric_data
def run_workload_characterization(metric_data, dbms): def run_workload_characterization(metric_data, dbms=None):
# Performs workload characterization on the metric_data and returns # Performs workload characterization on the metric_data and returns
# a set of pruned metrics. # a set of pruned metrics.
# #
@ -268,7 +268,7 @@ def run_workload_characterization(metric_data, dbms):
columnlabels = metric_data['columnlabels'] columnlabels = metric_data['columnlabels']
LOG.debug("Workload characterization ~ initial data size: %s", matrix.shape) LOG.debug("Workload characterization ~ initial data size: %s", matrix.shape)
views = VIEWS_FOR_PRUNING.get(dbms.type, None) views = None if dbms is None else VIEWS_FOR_PRUNING.get(dbms.type, None)
if views is not None: if views is not None:
useful_labels = [] useful_labels = []
for label in columnlabels: for label in columnlabels: