ソースを参照

HUE-7418 [hive] Table stats do not have numRows if the stats are not accurate

Romain Rigaux 8 年 前
コミット
90c7ba42bc
1 ファイル変更1 行追加1 行削除
  1. 1 1
      apps/beeswax/src/beeswax/tests.py

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

@@ -1866,7 +1866,7 @@ for x in sys.stdin:
       # Retrieve stats before analyze
       resp = self.client.get(reverse('beeswax:get_table_stats', kwargs={'database': self.db_name, 'table': 'test'}))
       stats = json.loads(resp.content)['stats']
-      assert_true(any([stat for stat in stats if stat['data_type'] == 'numRows' and stat['comment'] == '0']), resp.content)
+      assert_false([stat for stat in stats if stat['data_type'] == 'numRows'], resp.content)
 
       resp = self.client.get(reverse('beeswax:get_table_stats', kwargs={'database': self.db_name, 'table': 'test', 'column': 'foo'}))
       stats = json.loads(resp.content)['stats']