diff --git a/prod/clickhouse/violet/apply_violet_ddl.py b/prod/clickhouse/violet/apply_violet_ddl.py index 84b568d..8119c6e 100644 --- a/prod/clickhouse/violet/apply_violet_ddl.py +++ b/prod/clickhouse/violet/apply_violet_ddl.py @@ -35,6 +35,7 @@ EXPECTED_TABLES = { "adaptive_exit_shadow", "fee_settled_events", "sc_bucket_gauge_shadow", "sc_threshold_advisor_shadow", "violet_feed_divergence", "violet_decisions", + "violet_economics", "violet_decision_divergence", } diff --git a/prod/clickhouse/violet/test_apply_violet_ddl.py b/prod/clickhouse/violet/test_apply_violet_ddl.py index 35a033b..513203a 100644 --- a/prod/clickhouse/violet/test_apply_violet_ddl.py +++ b/prod/clickhouse/violet/test_apply_violet_ddl.py @@ -47,7 +47,10 @@ def test_real_sql_dir_yields_one_create_per_file(): for _, stmt in iter_statements(SQL_DIR) if "dolphin_violet." in stmt } - assert EXPECTED_TABLES <= created, f"missing CREATEs: {EXPECTED_TABLES - created}" + assert EXPECTED_TABLES == created, ( + f"DDL inventory mismatch: missing={EXPECTED_TABLES - created}, " + f"unregistered={created - EXPECTED_TABLES}" + ) def test_one_post_per_statement_and_double_apply_idempotent(monkeypatch):