You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by cs...@apache.org on 2020/11/24 14:42:40 UTC

[impala] 01/05: IMPALA-9050: fix TestScanRangeLengths params

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

csringhofer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 18b4e26b7beaeb08b46598e325f39a40d490f574
Author: Tim Armstrong <ta...@cloudera.com>
AuthorDate: Fri Nov 20 17:14:01 2020 -0800

    IMPALA-9050: fix TestScanRangeLengths params
    
    This test is only relevant from HDFS-based table formats. The option
    under test does not affect behaviour for Kudu or HBase.
    
    Change-Id: I9b8591335dcdc85ce27674b35661444a46d30d5a
    Reviewed-on: http://gerrit.cloudera.org:8080/16761
    Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 tests/query_test/test_scanners.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/query_test/test_scanners.py b/tests/query_test/test_scanners.py
index 4609564..5a865cc 100644
--- a/tests/query_test/test_scanners.py
+++ b/tests/query_test/test_scanners.py
@@ -1045,6 +1045,9 @@ class TestScanRangeLengths(ImpalaTestSuite):
     super(TestScanRangeLengths, cls).add_test_dimensions()
     cls.ImpalaTestMatrix.add_dimension(
         ImpalaTestDimension('max_scan_range_length', *MAX_SCAN_RANGE_LENGTHS))
+    # Test doesn't need to be run for non-HDFS table formats.
+    cls.ImpalaTestMatrix.add_constraint(
+        lambda v: not v.get_value('table_format').file_format in ('kudu', 'hbase'))
 
   def test_scan_ranges(self, vector):
     vector.get_value('exec_option')['max_scan_range_length'] =\