瀏覽代碼

[hive] Fix computation of table statistics button

Was computing the column statistics all the time before.
Romain Rigaux 10 年之前
父節點
當前提交
6750d63
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/beeswax/src/beeswax/api.py

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

@@ -695,7 +695,7 @@ def analyze_table(request, database, table, columns=None):
   response = {'status': -1, 'message': '', 'redirect': ''}
 
   if request.method == "POST":
-    if columns is not None:
+    if columns is None:
       query_history = db.analyze_table(database, table)
     else:
       query_history = db.analyze_table_columns(database, table)