[editor] Allow manual close_statement even if CLOSE_QUERIES is
false.
@@ -387,10 +387,6 @@ class HS2Api(Api):
@query_error_handler
def close_statement(self, notebook, snippet):
- if snippet['type'] == 'impala':
- from impala import conf as impala_conf
-
- if (snippet['type'] == 'hive' and beeswax_conf.CLOSE_QUERIES.get()) or (snippet['type'] == 'impala' and impala_conf.CLOSE_QUERIES.get()):
db = self._get_db(snippet, interpreter=self.interpreter)
try:
@@ -402,8 +398,6 @@ class HS2Api(Api):
else:
raise e
return {'status': 0}
- else:
- return {'status': -1} # skipped
def can_start_over(self, notebook, snippet):
