From 8bcdb96a9e9068ba21c56481f0bdb48ff85d1564 Mon Sep 17 00:00:00 2001 From: Huang Geyang Date: Wed, 8 Jan 2025 00:54:48 +0800 Subject: [PATCH] fix(dex): use correct catalog and schema naming in test view - Use delta_prod catalog - Combine git_schema and model_name in schema path - This matches how dbt creates temporary tables --- dbt_subprojects/dex/models/trades/test/dex_ci_trades_test.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_subprojects/dex/models/trades/test/dex_ci_trades_test.sql b/dbt_subprojects/dex/models/trades/test/dex_ci_trades_test.sql index 7549c51fad5..6c4a37da1e9 100644 --- a/dbt_subprojects/dex/models/trades/test/dex_ci_trades_test.sql +++ b/dbt_subprojects/dex/models/trades/test/dex_ci_trades_test.sql @@ -16,7 +16,7 @@ WITH base_union AS ( {% for file in modified_models %} {% set model_name = file.split('/')[-1].replace('.sql', '') %} SELECT * - FROM test_schema.{{ git_schema }}.{{ model_name }} + FROM delta_prod.test_schema.{{ git_schema }}_{{ model_name }} WHERE block_date = current_date - interval '1' day {% if not loop.last %} UNION ALL