|
@@ -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']
|