fix surrogate key name

This commit is contained in:
desmond-hui 2024-09-11 09:52:33 -07:00
parent 5b368aad96
commit d3495eb3be
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ SELECT
_inserted_timestamp,
{{ dbt_utils.generate_surrogate_key(
['block_id', 'tx_id', 'instruction_index', 'inner_index']
) }} AS inner_instructions_id,
) }} AS events_inner_id,
sysdate() AS inserted_timestamp,
sysdate() AS modified_timestamp,
'{{ invocation_id }}' AS _invocation_id

View File

@ -56,7 +56,7 @@ models:
description: "{{ doc('_inserted_timestamp') }}"
tests:
- not_null
- name: INNER_INSTRUCTIONS_ID
- name: EVENTS_INNER_ID
description: '{{ doc("pk") }}'
data_tests:
- not_null: *recent_date_filter