Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
Add more msg.
Browse files Browse the repository at this point in the history
  • Loading branch information
CPWstatic committed Jul 23, 2021
1 parent ec03f6c commit 6b574f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/common/plan_differ.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _diff_plan_node(self, plan_desc, line_num, rows, column_names) -> bool:

name_col_idx = column_names.index(self.NAME)
if not self._is_same_node(name, expect_node[name_col_idx]):
self._err_msg = f"{name} is not expected {expect_node[name_col_idx]}"
self._err_msg = f"{plan_node_desc} is not expected {expect_node}"
return False

if self._is_same_node(name, "Loop"):
Expand Down Expand Up @@ -139,7 +139,7 @@ def _is_subdict(small, big):
return dict(big, **small) == big

return _is_subdict(extracted_expected_dict, extracted_resp_dict)

# resp: pair(key, jsonStr)
def _convert_jsonStr_to_dict(self, resp, key_list):
resp_json_str = ''
Expand Down Expand Up @@ -194,7 +194,7 @@ def _validate_expect(self, rows, column_names):
if self.OP_INFO not in column_names:
self._err_msg = "Plan node operator info column is missing in expectde plan"
return False

id_idx_dict = {}
# Check node id existence
for i in range(len(rows)):
Expand Down

0 comments on commit 6b574f2

Please sign in to comment.