浏览代码

HUE-7489 [editor] CloseOperation when GetOperationStatus is in an ERROR_STATE

Romain Rigaux 8 年之前
父节点
当前提交
e212434

+ 0 - 1
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -961,7 +961,6 @@ class HiveServerClient:
     req = TGetOperationStatusReq(operationHandle=operation_handle)
     return self.call(self._client.GetOperationStatus, req)
 
-
   def explain(self, query):
     query_statement = query.get_query_statement(0)
     configuration = self._get_query_configuration(query)

+ 1 - 1
apps/beeswax/src/beeswax/tests.py

@@ -110,7 +110,7 @@ def _make_query(client, query, submission_type="Execute",
   return res
 
 def random_generator(size=8, chars=string.ascii_uppercase + string.digits):
-   return ''.join(random.choice(chars) for _ in range(size))
+    return ''.join(random.choice(chars) for _ in range(size))
 
 def get_csv(client, result_response):
   """Get the csv for a query result"""

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1240,7 +1240,7 @@ var EditorViewModel = (function() {
       $(".jHueNotify").remove();
       hueAnalytics.log('notebook', 'execute/' + self.type());
 
-      if (self.result.fetchedOnce()) {
+      if (self.result.handle()) {
         self.close();
         self.statusForButtons('executed');
       }