Skip to content

Commit 8ad472d

Browse files
authored
Merge pull request #564 from ClickHouse/fix-nightly-job
Adjust test_materialized_view test to support cloud
2 parents f485ed7 + 5472f32 commit 8ad472d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/adapter/materialized_view/test_materialized_view.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def test_mv_is_dropped_on_full_refresh(self, project):
287287
assert len(results) == 2 # will include also a view for the other test.
288288

289289
# Verify both tables were created correctly
290-
assert query_table_type(project, schema_unquoted, 'hackers_mv') == "MergeTree"
290+
assert "MergeTree" in query_table_type(project, schema_unquoted, 'hackers_mv')
291291
assert query_table_type(project, schema_unquoted, 'hackers_mv_mv') == "MaterializedView"
292292

293293
# Step 3: Change model to view materialization and run with full refresh
@@ -321,7 +321,7 @@ def test_view_full_refresh_does_not_affect_existing_mv_with_mv_suffix(self, proj
321321

322322
# Verify both models were created correctly
323323
assert query_table_type(project, schema_unquoted, 'hackers') == "View"
324-
assert query_table_type(project, schema_unquoted, 'hackers_mv') == "MergeTree"
324+
assert "MergeTree" in query_table_type(project, schema_unquoted, 'hackers_mv')
325325
assert query_table_type(project, schema_unquoted, 'hackers_mv_mv') == "MaterializedView"
326326

327327
# Verify data is present in both
@@ -341,7 +341,7 @@ def test_view_full_refresh_does_not_affect_existing_mv_with_mv_suffix(self, proj
341341
assert result[0][0] == 3
342342

343343
# Verify that hackers_mv and hackers_mv_mv are still present and working
344-
assert query_table_type(project, schema_unquoted, 'hackers_mv') == "MergeTree"
344+
assert "MergeTree" in query_table_type(project, schema_unquoted, 'hackers_mv')
345345
assert query_table_type(project, schema_unquoted, 'hackers_mv_mv') == "MaterializedView"
346346

347347
result = project.run_sql(f"select count(*) from {schema_unquoted}.hackers_mv", fetch="all")

0 commit comments

Comments
 (0)