Skip to content

Commit

Permalink
Merge pull request #11 from FlipsideCrypto/yml_adj
Browse files Browse the repository at this point in the history
adjust yml
  • Loading branch information
forgxyz authored Jul 19, 2023
2 parents 2c4042a + 554b829 commit 9ab354b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions models/gold/core/core__fact_blocks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ WITH blocks AS (
difficulty,
merkle_root,
nonce,
size,
SIZE,
stripped_size,
version,
weight,
error,
tx as txs
tx AS txs
FROM
{{ ref('silver__blocks') }}
)
Expand Down
14 changes: 7 additions & 7 deletions models/gold/core/core__fact_blocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@ models:
tests:
- not_null

- name: TXS
description: "{{ doc('tx') }}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_of_type:
column_type: ARRAY

- name: VERSION
description: "{{ doc('version') }}"
tests:
Expand All @@ -117,3 +110,10 @@ models:

- name: ERROR
description: "{{ doc('error') }}"

- name: TXS
description: "{{ doc('tx') }}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_of_type:
column_type: ARRAY
30 changes: 15 additions & 15 deletions models/gold/core/core__fact_transactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ WITH txs AS (
block_number,
block_hash,
tx_id,
index,
INDEX,
tx_hash,
HEX,
FEE,
IS_COINBASE,
COINBASE,
INPUTS,
INPUT_COUNT,
INPUT_VALUE,
OUTPUTS,
OUTPUT_COUNT,
OUTPUT_VALUE,
hex,
fee,
is_coinbase,
coinbase,
inputs,
input_count,
input_value,
outputs,
output_count,
output_value,
SIZE,
VIRTUAL_SIZE,
WEIGHT,
LOCK_TIME,
VERSION
virtual_size,
weight,
lock_time,
version
FROM
{{ ref('silver__transactions_final') }}
)
Expand Down

0 comments on commit 9ab354b

Please sign in to comment.