new documentations

This commit is contained in:
robel91 2022-11-21 17:14:06 -05:00
parent 64f7b4d006
commit c179dee895
6 changed files with 68 additions and 7 deletions

View File

@ -89,4 +89,45 @@ models:
- float
- NUMBER
- name: from_decimal
description: "{{ doc('from_decimal') }}"
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- decimal
- float
- NUMBER
- name: to_amount
description: "{{ doc('to_amount') }}"
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
- DECIMAL
- name: to_currency
description: "{{ doc('to_currency') }}"
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
- name: to_decimal
description: "{{ doc('to_decimal') }}"
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- decimal
- float
- NUMBER
- name: pool_ids
description: "{{ doc('pool_ids') }}"
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR

View File

@ -0,0 +1,5 @@
{% docs pool_ids %}
Identifier for the pool within the module
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs to_amount %}
The amount that the user sent to be swapped for another currency.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs to_currency %}
The currency that the user sent to be swapped for another currency.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs to_decimal %}
Divide the swap_to_amount by POW(10, swap_to_decimal) to get the amount the user received.
{% enddocs %}

View File

@ -99,13 +99,13 @@ models:
- NUMBER
- name: to_amount
description: "{{ doc('To_amount') }}"
description: "{{ doc('to_amount') }}"
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
- DOUBLE
- DECIMAL
- name: to_currency
description: "{{ doc('to_currency') }}"
@ -132,10 +132,10 @@ models:
column_type_list:
- timestamp_ntz
- name: pool_ids
description: "{{ doc('pool_ids')}}"
- name: pool_ids
description: "{{ doc('pool_ids') }}"
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
- STRING
- VARCHAR