def add_test_dimensions(cls): super(TestAllRuntimeFilters, cls).add_test_dimensions() # All filters are only implemented for Kudu now. cls.ImpalaTestMatrix.add_constraint( lambda v: v.get_value('table_format').file_format in ['kudu']) # Enable query option ASYNC_CODEGEN for slow build if build_runs_slowly: add_exec_option_dimension(cls, "async_codegen", 1)
def add_test_dimensions(cls): super(TestOverlapMinMaxFilters, cls).add_test_dimensions() # Overlap min-max filters are only implemented for parquet. cls.ImpalaTestMatrix.add_constraint( lambda v: v.get_value('table_format').file_format in ['parquet']) # Enable query option ASYNC_CODEGEN for slow build if build_runs_slowly: add_exec_option_dimension(cls, "async_codegen", 1)
def add_test_dimensions(cls): super(TestBloomFilters, cls).add_test_dimensions() # Bloom filters are disabled on HBase cls.ImpalaTestMatrix.add_constraint( lambda v: v.get_value('table_format').file_format not in ['hbase']) # Enable query option ASYNC_CODEGEN for slow build if build_runs_slowly: add_exec_option_dimension(cls, "async_codegen", 1)
def add_test_dimensions(cls): super(TestInListFilters, cls).add_test_dimensions() # Currently, IN-list filters are only implemented for orc. cls.ImpalaTestMatrix.add_constraint( lambda v: v.get_value('table_format').file_format in ['orc']) # Enable query option ASYNC_CODEGEN for slow build if build_runs_slowly: add_exec_option_dimension(cls, "async_codegen", 1)
def add_test_dimensions(cls): super(TestRuntimeRowFilters, cls).add_test_dimensions() cls.ImpalaTestMatrix.add_constraint(lambda v: v.get_value('table_format').file_format in ['parquet']) # Exercise both mt and non-mt code paths. Some tests assume 3 finstances, so # tests are not expected to work unmodified with higher mt_dop values. cls.ImpalaTestMatrix.add_dimension(ImpalaTestDimension('mt_dop', 0, 4)) # Enable query option ASYNC_CODEGEN for slow build if build_runs_slowly: add_exec_option_dimension(cls, "async_codegen", 1)
def add_test_dimensions(cls): super(TestRuntimeFilters, cls).add_test_dimensions() # Runtime filters are disabled on HBase cls.ImpalaTestMatrix.add_constraint( lambda v: v.get_value('table_format').file_format not in ['hbase']) # Exercise both mt and non-mt code paths. Some tests assume 3 finstances, so # tests are not expected to work unmodified with higher mt_dop values. cls.ImpalaTestMatrix.add_dimension(ImpalaTestDimension('mt_dop', 0, 1)) # Don't test all combinations of file format and mt_dop, only test a few # representative formats. cls.ImpalaTestMatrix.add_constraint( lambda v: v.get_value('table_format').file_format in ['parquet', 'text', 'kudu'] or v.get_value('mt_dop') == 0) # Enable query option ASYNC_CODEGEN for slow build if build_runs_slowly: add_exec_option_dimension(cls, "async_codegen", 1)
def add_test_dimensions(cls): super(TestAsyncCodegen, cls).add_test_dimensions() cls.ImpalaTestMatrix.add_dimension( create_exec_option_dimension( cluster_sizes=[1], disable_codegen_options=[False], batch_sizes=[0], disable_codegen_rows_threshold_options=[0], debug_action_options=[ cls.DEBUG_ACTION_CODEGEN_FINISH_BEFORE_EXEC_START, cls.DEBUG_ACTION_CODEGEN_FINISH_DURING_EXEC, cls.DEBUG_ACTION_EXEC_FINISH_BEFORE_CODEGEN ])) add_exec_option_dimension(cls, "async_codegen", 1) cls.ImpalaTestMatrix.add_constraint( lambda vector: cls.__is_valid_test_vector(vector))
def add_test_dimensions(cls): super(TestKuduOperations, cls).add_test_dimensions() # The default read mode of READ_LATEST does not provide high enough consistency for # these tests. add_exec_option_dimension(cls, "kudu_read_mode", "READ_AT_SNAPSHOT")