Fix bugs on the index advisor: repair log extraction function

This commit is contained in:
liuly
2021-08-03 11:57:14 +00:00
committed by Gitee
parent a73faa8504
commit bf105d2f26

View File

@ -205,7 +205,7 @@ def display_recommend_result(workload, candidate_indexes, index_cost_total,
sql_detail['sqlTemplate'] = sql_template
sql_detail['sql'] = workload[pos].statement
sql_detail['sqlCount'] = int(round(sql_count)
sql_detail['sqlCount'] = int(round(sql_count))
if category == 1:
sql_optimzed = (workload[pos].cost_list[0] -
workload[pos].cost_list[cost_list_pos]) / \