Procházet zdrojové kódy

[fb] Changed assert target stat from numRows to numFiles (#1178)

Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com>
Sungpeo Kook před 5 roky
rodič
revize
aaaa2a2032
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      apps/beeswax/src/beeswax/tests.py

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

@@ -1936,7 +1936,8 @@ for x in sys.stdin:
       # Retrieve stats before analyze
       # Retrieve stats before analyze
       resp = self.client.get(reverse('beeswax:get_table_stats', kwargs={'database': self.db_name, 'table': 'test'}))
       resp = self.client.get(reverse('beeswax:get_table_stats', kwargs={'database': self.db_name, 'table': 'test'}))
       stats = json.loads(resp.content)['stats']
       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_true(any([stat for stat in stats if stat['data_type'] == 'numFiles' and stat['comment'] == '1']), resp.content)
+
 
 
       resp = self.client.get(reverse('beeswax:get_table_stats', kwargs={'database': self.db_name, 'table': 'test', 'column': 'foo'}))
       resp = self.client.get(reverse('beeswax:get_table_stats', kwargs={'database': self.db_name, 'table': 'test', 'column': 'foo'}))
       stats = json.loads(resp.content)['stats']
       stats = json.loads(resp.content)['stats']