IMPALA-6884: Skip test_misaligned_orc_stripes on invalid platforms

test_misaligned_orc_stripes relies on generating files
with a specific number of HDFS blocks. This is not
possible on S3, ADLS, or Isilon, so the test needs to
be skipped on those platforms. Additionally, it relies
on running multiple impalads, so it needs to be skipped
on local filesystem tests.

Change-Id: I8395b4eb06847a35c630b3ef43e289960d78382a
Reviewed-on: http://gerrit.cloudera.org:8080/10117
Reviewed-by: Vuk Ercegovac <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


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

Branch: refs/heads/2.x
Commit: d253c06f2b814ac188f04fefdfc95b3cde6203ee
Parents: c7c9433
Author: Joe McDonnell <[email protected]>
Authored: Thu Apr 19 10:30:46 2018 -0700
Committer: Impala Public Jenkins <[email protected]>
Committed: Fri Apr 20 20:17:57 2018 +0000

----------------------------------------------------------------------
 tests/query_test/test_scanners.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/impala/blob/d253c06f/tests/query_test/test_scanners.py
----------------------------------------------------------------------
diff --git a/tests/query_test/test_scanners.py 
b/tests/query_test/test_scanners.py
index f17561d..191db24 100644
--- a/tests/query_test/test_scanners.py
+++ b/tests/query_test/test_scanners.py
@@ -912,6 +912,10 @@ class TestOrc(ImpalaTestSuite):
     cls.ImpalaTestMatrix.add_constraint(
       lambda v: v.get_value('table_format').file_format == 'orc')
 
+  @SkipIfS3.hdfs_block_size
+  @SkipIfADLS.hdfs_block_size
+  @SkipIfIsilon.hdfs_block_size
+  @SkipIfLocal.multiple_impalad
   def test_misaligned_orc_stripes(self, vector, unique_database):
     self._build_lineitem_table_helper(unique_database, 'lineitem_threeblocks',
         'lineitem_threeblocks.orc')

Reply via email to