@@ -103,8 +103,34 @@ def filter_anomaly_tests_for_clickhouse(
103103 test_types : List [str ], target : str
104104) -> List [str ]:
105105 if target == "clickhouse" :
106- # For ClickHouse, we'll only run basic artifacts tests
107- return ["artifacts" ] if "artifacts" in test_types else []
106+ # Tests not supported on ClickHouse
107+ unsupported_test_types = {
108+ # Anomaly tests (not supported in ClickHouse)
109+ "seasonal_volume" ,
110+ "table" ,
111+ "column" ,
112+ "directional_anomalies" ,
113+ "backfill_days" ,
114+ "dimension" ,
115+ "no_timestamp" ,
116+ # Schema and error tests (function compatibility issues)
117+ "schema" ,
118+ "error_test" ,
119+ "error_model" ,
120+ "error_snapshot" ,
121+ # Models with compatibility issues
122+ "create_table" ,
123+ "non_dbt_models" ,
124+ # Tests requiring specific database setup
125+ "config_levels" ,
126+ }
127+
128+ # Keep basic tests that should work with ClickHouse
129+ return [
130+ test_type
131+ for test_type in test_types
132+ if test_type not in unsupported_test_types
133+ ]
108134 return test_types
109135
110136
@@ -506,18 +532,7 @@ def main(target, e2e_type, generate_data, clear_tests):
506532 found_failures = False
507533 for e2e_target in e2e_targets :
508534 print (f"Starting { e2e_target } tests\n " )
509- # Filter tests for the current target
510- filtered_test_types = filter_anomaly_tests_for_clickhouse (e2e_types , e2e_target )
511-
512- if not filtered_test_types :
513- print (
514- f"ERROR: No supported tests found for { e2e_target } . This indicates that { e2e_target } is not properly supported."
515- )
516- sys .exit (1 )
517-
518- e2e_test_results = e2e_tests (
519- e2e_target , filtered_test_types , clear_tests , generate_data
520- )
535+ e2e_test_results = e2e_tests (e2e_target , e2e_types , clear_tests , generate_data )
521536 print (f"\n { e2e_target } results" )
522537 all_results [e2e_target ] = e2e_test_results
523538
0 commit comments