Skip to content

Commit

Permalink
fix analyze variable (#362)
Browse files Browse the repository at this point in the history
* fix

* fix

* fix

* fix sql_review log

* fix build package

* fix gather table dump

* fix

* Temporarily hide the analyze SQL, to be reopened after resolving the slow ply

* fix sql plan monitor rows null

* fix analyze parameter/variable

* fix
  • Loading branch information
Teingi authored Jul 24, 2024
1 parent 3d59621 commit 387fa97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions handler/analyzer/analyze_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def check_file_valid(self):
flag = 0
if flag == 0:
self.stdio.error('args --file [{0}] is not a valid variable file, Please specify it again'.format(os.path.abspath(self.variable_file_name)))
exit(-1)
return False
else:
return True

def init_option(self):
options = self.context.options
Expand All @@ -86,7 +88,8 @@ def init_option(self):
return False
else:
self.variable_file_name = os.path.abspath(offline_file_option)
self.check_file_valid()
if not self.check_file_valid():
return False
else:
self.stdio.error("args --file need provided to find the parts where variables have changed.")
return False
Expand Down

0 comments on commit 387fa97

Please sign in to comment.