Skip to content

Commit

Permalink
fix(dex): use null varbinary for tx_from and tx_to in test view
Browse files Browse the repository at this point in the history
- Use cast(null as varbinary) for tx_from and tx_to
- These fields are only for testing and not used in production
- Keep production code unchanged
  • Loading branch information
Hosuke committed Jan 7, 2025
1 parent 40a95bb commit 313afd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt_subprojects/dex/models/trades/test/dex_ci_trades_test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ WITH base_trades AS (
{% set model_name = file.split('/')[-1].replace('.sql', '') %}
SELECT
*,
evt_tx_hash as tx_from, -- For testing only, not used in production
evt_tx_hash as tx_to -- For testing only, not used in production
cast(null as varbinary) as tx_from, -- For testing only, not used in production
cast(null as varbinary) as tx_to -- For testing only, not used in production
FROM delta_prod.test_schema.{{ git_schema }}_{{ model_name }}
WHERE block_date = current_date - interval '1' day
{% if not loop.last %}
Expand Down

0 comments on commit 313afd8

Please sign in to comment.