IMPALA-5015: Run parquet_stats_test.py with mt_dop > 0

Change-Id: I4f1a17708ba3aa5dd0bf2090e2ac71eff436b86c
Reviewed-on: http://gerrit.cloudera.org:8080/6232
Reviewed-by: Lars Volker <[email protected]>
Tested-by: Impala Public Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/7ea96c64
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/7ea96c64
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/7ea96c64

Branch: refs/heads/master
Commit: 7ea96c64a28cb349c21febdc95d4cf2e51e62353
Parents: 94a8b1a
Author: Lars Volker <[email protected]>
Authored: Thu Mar 2 14:40:53 2017 -0800
Committer: Impala Public Jenkins <[email protected]>
Committed: Fri Mar 3 08:36:13 2017 +0000

----------------------------------------------------------------------
 tests/query_test/test_mt_dop.py        | 1 -
 tests/query_test/test_parquet_stats.py | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/7ea96c64/tests/query_test/test_mt_dop.py
----------------------------------------------------------------------
diff --git a/tests/query_test/test_mt_dop.py b/tests/query_test/test_mt_dop.py
index ddef617..9c1b3b3 100644
--- a/tests/query_test/test_mt_dop.py
+++ b/tests/query_test/test_mt_dop.py
@@ -23,7 +23,6 @@ from copy import deepcopy
 from tests.common.impala_test_suite import ImpalaTestSuite
 from tests.common.skip import SkipIfOldAggsJoins
 from tests.common.test_vector import ImpalaTestDimension
-from tests.common.test_vector import ImpalaTestVector
 
 # COMPUTE STATS on Parquet tables automatically sets MT_DOP=4, so include
 # the value 0 to cover the non-MT path as well.

http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/7ea96c64/tests/query_test/test_parquet_stats.py
----------------------------------------------------------------------
diff --git a/tests/query_test/test_parquet_stats.py 
b/tests/query_test/test_parquet_stats.py
index 502301a..9b9d6d7 100644
--- a/tests/query_test/test_parquet_stats.py
+++ b/tests/query_test/test_parquet_stats.py
@@ -17,8 +17,11 @@
 
 import pytest
 
+from tests.common.test_vector import ImpalaTestDimension
 from tests.common.impala_test_suite import ImpalaTestSuite
 
+MT_DOP_VALUES = [0, 1, 2, 8]
+
 class TestParquetStats(ImpalaTestSuite):
   """
   This suite tests runtime optimizations based on Parquet statistics.
@@ -31,6 +34,7 @@ class TestParquetStats(ImpalaTestSuite):
   @classmethod
   def add_test_dimensions(cls):
     super(TestParquetStats, cls).add_test_dimensions()
+    cls.ImpalaTestMatrix.add_dimension(ImpalaTestDimension('mt_dop', 
*MT_DOP_VALUES))
     cls.ImpalaTestMatrix.add_constraint(
         lambda v: v.get_value('table_format').file_format == 'parquet')
 

Reply via email to