Преглед изворни кода

[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)