Skip to content

Commit

Permalink
fix concat issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lequangphu committed Nov 24, 2024
1 parent 23f5516 commit 986119e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dbt_subprojects/daily_spellbook/models/_projects/lifi/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,53 +36,53 @@ models:
description: "Address that initiated the transaction"
data_tests:
- unique:
column_name: "evt_tx_hash || '-' || evt_index"
column_name: "concat(cast(evt_tx_hash as varchar), '-', cast(evt_index as varchar))"

- name: lifi_arbitrum_transfers
description: "Arbitrum LiFi transfer events"
columns: *common_columns
data_tests:
- unique:
column_name: "evt_tx_hash || '-' || evt_index"
column_name: "concat(cast(evt_tx_hash as varchar), '-', cast(evt_index as varchar))"

- name: lifi_avalanche_transfers
description: "Avalanche LiFi transfer events"
columns: *common_columns
data_tests:
- unique:
column_name: "evt_tx_hash || '-' || evt_index"
column_name: "concat(cast(evt_tx_hash as varchar), '-', cast(evt_index as varchar))"

- name: lifi_bnb_transfers
description: "BNB Chain LiFi transfer events"
columns: *common_columns
data_tests:
- unique:
column_name: "evt_tx_hash || '-' || evt_index"
column_name: "concat(cast(evt_tx_hash as varchar), '-', cast(evt_index as varchar))"

- name: lifi_fantom_transfers
description: "Fantom LiFi transfer events"
columns: *common_columns
data_tests:
- unique:
column_name: "evt_tx_hash || '-' || evt_index"
column_name: "concat(cast(evt_tx_hash as varchar), '-', cast(evt_index as varchar))"

- name: lifi_gnosis_transfers
description: "Gnosis Chain LiFi transfer events"
columns: *common_columns
data_tests:
- unique:
column_name: "evt_tx_hash || '-' || evt_index"
column_name: "concat(cast(evt_tx_hash as varchar), '-', cast(evt_index as varchar))"

- name: lifi_zksync_transfers
description: "zkSync LiFi transfer events"
columns: *common_columns
data_tests:
- unique:
column_name: "evt_tx_hash || '-' || evt_index"
column_name: "concat(cast(evt_tx_hash as varchar), '-', cast(evt_index as varchar))"

- name: LiFiDiamond_v2_evt_LiFiTransferStarted
description: "Combined LiFi transfer events across all supported chains"
columns: *common_columns
data_tests:
- unique:
column_name: "evt_tx_hash || '-' || evt_index"
column_name: "concat(cast(evt_tx_hash as varchar), '-', cast(evt_index as varchar))"

0 comments on commit 986119e

Please sign in to comment.