Skip to content

Commit

Permalink
[HUBBLE - 466] - Patch/fix intermediate model names (#55)
Browse files Browse the repository at this point in the history
* fix intermediate model names

* fixing indentation of tests and column names in the documentation
  • Loading branch information
debora-hcalves authored Jul 1, 2024
1 parent eca117f commit ca9876b
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
42 changes: 21 additions & 21 deletions models/intermediate/trades/int_trade_agg_month.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

models:
- name: int_trade_agg_day
- name: int_trade_agg_month
description: Intermediate for the aggregation of monthly trade data. This table contains the aggregated metrics of all trades between an asset pair, regardless of whether they are selling or buying.
columns:
- name: day_agg
Expand Down Expand Up @@ -31,32 +31,32 @@ models:
- name: asset_b_type
description: '{{ doc("asset_b_type") }}'

- name: trade_count_month
description: '{{ doc("trade_count_month") }}'
- name: trade_count_monthly
description: '{{ doc("trade_count_monthly") }}'

- name: asset_a_volume_month
description: '{{ doc("asset_a_volume_month") }}'
- name: asset_a_volume_monthly
description: '{{ doc("asset_a_volume_monthly") }}'

- name: asset_b_volume_month
description: '{{ doc("asset_b_volume_month") }}'
- name: asset_b_volume_monthly
description: '{{ doc("asset_b_volume_monthly") }}'

- name: avg_price_month
description: '{{ doc("avg_price_month") }}'
- name: avg_price_monthly
description: '{{ doc("avg_price_monthly") }}'

- name: high_price_month
description: '{{ doc("high_price_month") }}'
- name: high_price_monthly
description: '{{ doc("high_price_monthly") }}'

- name: low_price_month
description: '{{ doc("low_price_month") }}'
- name: low_price_monthly
description: '{{ doc("low_price_monthly") }}'

- name: open_n_month
description: '{{ doc("open_n_month") }}'
- name: open_n_monthly
description: '{{ doc("open_n_monthly") }}'

- name: open_d_month
description: '{{ doc("open_d_month") }}'
- name: open_d_monthly
description: '{{ doc("open_d_monthly") }}'

- name: close_n_month
description: '{{ doc("close_n_month") }}'
- name: close_n_monthly
description: '{{ doc("close_n_monthly") }}'

- name: close_d_month
description: '{{ doc("close_d_month") }}'
- name: close_d_monthly
description: '{{ doc("close_d_monthly") }}'
2 changes: 1 addition & 1 deletion models/intermediate/trades/int_trade_agg_week.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

models:
- name: int_trade_agg_day
- name: int_trade_agg_week
description: Intermediate for the aggregation of weekly trade data. This table contains the aggregated metrics of all trades between an asset pair, regardless of whether they are selling or buying.
columns:
- name: day_agg
Expand Down
2 changes: 1 addition & 1 deletion models/intermediate/trades/int_trade_agg_year.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

models:
- name: int_trade_agg_day
- name: int_trade_agg_year
description: Intermediate for the aggregation of yearly trade data. This table contains the aggregated metrics of all trades between an asset pair, regardless of whether they are selling or buying.
columns:
- name: day_agg
Expand Down
6 changes: 3 additions & 3 deletions models/sources/src_config_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ sources:
- not_null:
config:
where: closed_at > current_timestamp - interval 2 day
- accepted_values:
values: [0, 1, 2]
quote: false
- accepted_values:
values: [0, 1, 2]
quote: false

- name: deleted
description: '{{ doc("deleted") }}'
Expand Down
6 changes: 3 additions & 3 deletions models/sources/src_contract_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ sources:
- not_null:
config:
where: closed_at > current_timestamp - interval 2 day
- accepted_values:
values: [0, 1, 2]
quote: false
- accepted_values:
values: [0, 1, 2]
quote: false

- name: deleted
description: '{{ doc("deleted") }}'
Expand Down

0 comments on commit ca9876b

Please sign in to comment.