You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ga...@apache.org on 2019/03/19 09:46:23 UTC

[impala] 01/11: IMPALA-8300: Skip test_max_nesting_depth for Orc in non-HDFS tests

This is an automated email from the ASF dual-hosted git repository.

gaborkaszab pushed a commit to branch branch-3.2.0
in repository https://gitbox.apache.org/repos/asf/impala.git

commit c9600306d87cca8efcdac5b275d7a81eee662ddb
Author: Csaba Ringhofer <cs...@cloudera.com>
AuthorDate: Mon Mar 11 16:19:43 2019 +0100

    IMPALA-8300: Skip test_max_nesting_depth for Orc in non-HDFS tests
    
    test_max_nesting_depth works with both Orc and Parquet formats, and
    needs Hive queries for data load only in the Orc case. Hive only works
    with HDFS, so this test needs to be skipped if file format is Orc and
    the filesystem is not HDFS.
    
    Change-Id: Ie97166b59c451fadb33e4e780056afbaec11baa8
    Reviewed-on: http://gerrit.cloudera.org:8080/12714
    Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 tests/query_test/test_nested_types.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/query_test/test_nested_types.py b/tests/query_test/test_nested_types.py
index 9fd3746..a1d1492 100644
--- a/tests/query_test/test_nested_types.py
+++ b/tests/query_test/test_nested_types.py
@@ -35,7 +35,7 @@ from tests.common.skip import (
     SkipIfNotHdfsMinicluster
     )
 from tests.common.test_vector import ImpalaTestDimension
-from tests.util.filesystem_utils import WAREHOUSE, get_fs_path
+from tests.util.filesystem_utils import WAREHOUSE, get_fs_path, IS_HDFS
 
 class TestNestedTypes(ImpalaTestSuite):
   @classmethod
@@ -608,6 +608,9 @@ class TestMaxNestingDepth(ImpalaTestSuite):
     """Tests that Impala can scan Parquet and ORC files having complex types of
     the maximum nesting depth."""
     file_format = vector.get_value('table_format').file_format
+    if file_format == 'orc' and not IS_HDFS:
+      pytest.skip('Orc table loading needs Hive and thus only works with HDFS.')
+
     if file_format == 'parquet':
       self.__create_parquet_tables(unique_database)
     elif file_format == 'orc':