Compute stats for tpch parquet tables while loading the data.

This patch removes the logic from the python test file, it should really live in the
code that sets up the test-warehouse.

Change-Id: Id04dc90c7ab813af2f347ec79e9e43d76de794a2
Reviewed-on: http://gerrit.cloudera.org:8080/224
Reviewed-by: Ippokratis Pandis <ipandis@cloudera.com>
Tested-by: Internal Jenkins
This commit is contained in:
ishaan
2015-03-12 15:24:47 -07:00
parent 3a280b1644
commit 73d7ab11e1
2 changed files with 9 additions and 18 deletions

View File

@@ -103,18 +103,6 @@ class TestTpchMemLimitError(ImpalaTestSuite):
cls.TestMatrix.add_constraint(lambda v:\
v.get_value('table_format').file_format in ['parquet'])
@classmethod
def setup_class(cls):
super(TestTpchMemLimitError, cls).setup_class()
cls.client.execute('compute stats tpch_parquet.lineitem');
cls.client.execute('compute stats tpch_parquet.orders');
cls.client.execute('compute stats tpch_parquet.customer');
cls.client.execute('compute stats tpch_parquet.part');
cls.client.execute('compute stats tpch_parquet.supplier');
cls.client.execute('compute stats tpch_parquet.partsupp');
cls.client.execute('compute stats tpch_parquet.nation');
cls.client.execute('compute stats tpch_parquet.region');
def low_memory_limit_test(self, vector, tpch_query, limit):
mem = vector.get_value('mem_limit')
# Mem consumption can be +-30MBs, depending on how many scanner threads are