Skip to content

Commit

Permalink
fix(dex): use correct catalog and schema naming in test view
Browse files Browse the repository at this point in the history
- Use delta_prod catalog
- Combine git_schema and model_name in schema path
- This matches how dbt creates temporary tables
  • Loading branch information
Hosuke committed Jan 7, 2025
1 parent 7e7ec04 commit 8bcdb96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bcdb96

Please sign in to comment.