Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
DVAlexHiggs committed Jul 19, 2022
2 parents cf72a5c + 49627f9 commit e94b343
Show file tree
Hide file tree
Showing 7 changed files with 407 additions and 802 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

target/

*.log
logs

.idea/

dbt_modules
dbt_packages
5 changes: 3 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ verify_ssl = true
[dev-packages]

[packages]
dbt = "==0.21.0"
dbt-core = "==1.1.1"
dbt-snowflake = "*"

[requires]
python_version = "3.8"
python_version = "3.9"
1,051 changes: 341 additions & 710 deletions Pipfile.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: dbtvault_snowflake_demo
profile: dbtvault_snowflake_demo
version: '5.2.0'
require-dbt-version: ['>=0.20.0', '<0.22.0']
version: '5.3.0'
require-dbt-version: ['>=1.0.0', '<2.0.0']
config-version: 2

analysis-paths:
- analysis
clean-targets:
- target
data-paths:
- data
seed-paths:
- seeds
macro-paths:
- macros
source-paths:
model-paths:
- models
test-paths:
- tests
Expand Down
11 changes: 6 additions & 5 deletions models/stage/v_stg_orders.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{%- set yaml_metadata -%}
source_model: 'raw_orders'
derived_columns:
CUSTOMER_KEY: 'CUSTOMERKEY'
NATION_KEY: 'CUSTOMER_NATION_KEY'
REGION_KEY: 'CUSTOMER_REGION_KEY'
RECORD_SOURCE: '!TPCH-ORDERS'
EFFECTIVE_FROM: 'ORDERDATE'
hashed_columns:
CUSTOMER_PK: 'CUSTOMERKEY'
CUSTOMER_PK: 'CUSTOMER_KEY'
LINK_CUSTOMER_NATION_PK:
- 'CUSTOMERKEY'
- 'CUSTOMER_KEY'
- 'CUSTOMER_NATION_KEY'
CUSTOMER_NATION_PK: 'CUSTOMER_NATION_KEY'
CUSTOMER_REGION_PK: 'CUSTOMER_REGION_KEY'
Expand All @@ -19,7 +20,7 @@ hashed_columns:
- 'CUSTOMER_REGION_KEY'
ORDER_PK: 'ORDERKEY'
ORDER_CUSTOMER_PK:
- 'CUSTOMERKEY'
- 'CUSTOMER_KEY'
- 'ORDERKEY'
LINEITEM_PK:
- 'ORDERKEY'
Expand All @@ -40,7 +41,7 @@ hashed_columns:
CUSTOMER_HASHDIFF:
is_hashdiff: true
columns:
- 'CUSTOMERKEY'
- 'CUSTOMER_KEY'
- 'CUSTOMER_NAME'
- 'CUSTOMER_ADDRESS'
- 'CUSTOMER_PHONE'
Expand Down Expand Up @@ -107,4 +108,4 @@ WITH staging AS (

SELECT *,
TO_DATE('{{ var('load_date') }}') AS LOAD_DATE
FROM staging
FROM staging
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: Datavault-UK/dbtvault
version: 0.7.8
version: 0.8.3
127 changes: 49 additions & 78 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,82 +1,53 @@
agate==1.6.1
asn1crypto==1.4.0
attrs==21.2.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
azure-common==1.1.27
azure-core==1.19.0
azure-storage-blob==12.9.0
babel==2.9.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
boto3==1.19.2; python_version >= '3.6'
botocore==1.22.2; python_version >= '3.6'
cachetools==4.2.4; python_version ~= '3.5'
certifi==2021.10.8
cffi==1.15.0
chardet==4.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
charset-normalizer==2.0.7; python_version >= '3'
colorama==0.4.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
cryptography==3.4.8; python_version >= '3.6'
dbt-bigquery==0.21.0; python_full_version >= '3.6.2'
dbt-core==0.21.0; python_full_version >= '3.6.3'
dbt-extractor==0.4.0
dbt-postgres==0.21.0; python_full_version >= '3.6.2'
dbt-redshift==0.21.0; python_full_version >= '3.6.2'
dbt-snowflake==0.21.0; python_full_version >= '3.6.2'
dbt==0.21.0
google-api-core[grpc]==1.31.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
google-auth==1.35.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
google-cloud-bigquery==2.28.1; python_version < '3.10' and python_version >= '3.6'
google-cloud-core==1.7.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
google-crc32c==1.3.0; python_version >= '3.6'
google-resumable-media==2.0.3; python_version >= '3.6'
googleapis-common-protos==1.53.0; python_version >= '3.6'
grpcio==1.41.0
hologram==0.0.14
idna==3.3; python_version >= '3'
importlib-metadata==4.8.1; python_version >= '3.6'
isodate==0.6.0
jeepney==0.7.1; sys_platform == 'linux'
jinja2==2.11.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
jmespath==0.10.0; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2'
json-rpc==1.13.0
jsonschema==3.1.1
keyring==21.8.0
agate==1.6.3
asn1crypto==1.5.1
attrs==21.4.0
Babel==2.10.3
certifi==2022.6.15
cffi==1.15.1
charset-normalizer==2.0.12
click==8.1.3
colorama==0.4.4
cryptography==3.4.8
dbt-core==1.1.1
dbt-extractor==0.4.1
dbt-snowflake==1.1.0
future==0.18.2
hologram==0.0.15
idna==3.3
importlib-metadata==4.12.0
isodate==0.6.1
jeepney==0.8.0
Jinja2==2.11.3
jsonschema==3.2.0
keyring==23.7.0
leather==0.3.4
logbook==1.5.3
markupsafe==2.0.1; python_version >= '3.6'
mashumaro==2.5; python_version >= '3.6'
Logbook==1.5.3
MarkupSafe==2.0.1
mashumaro==2.9
minimal-snowplow-tracker==0.0.2
msgpack==1.0.2
msrest==0.6.21
networkx==2.6.3; python_version >= '3.7'
oauthlib==3.1.1; python_version >= '3.6'
oscrypto==1.2.1
packaging==20.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
parsedatetime==2.6
proto-plus==1.19.5; python_version >= '3.6'
protobuf==3.17.3
psycopg2-binary==2.9.1; python_version >= '3.6'
pyasn1-modules==0.2.8
pyasn1==0.4.8
pycparser==2.20; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pycryptodomex==3.11.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
pyjwt==2.3.0; python_version >= '3.6'
pyopenssl==20.0.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
pyparsing==3.0.1; python_version >= '3.6'
pyrsistent==0.18.0; python_version >= '3.6'
python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
python-slugify==5.0.2; python_version >= '3.6'
msgpack==1.0.4
networkx==2.8.3
oscrypto==1.3.0
packaging==21.3
parsedatetime==2.4
pycparser==2.21
pycryptodomex==3.15.0
PyJWT==2.4.0
pyOpenSSL==21.0.0
pyparsing==3.0.9
pyrsistent==0.18.1
python-dateutil==2.8.2
python-slugify==6.1.2
pytimeparse==1.1.8
pytz==2021.3
pyyaml==6.0; python_version >= '3.6'
requests-oauthlib==1.3.0
requests==2.26.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
rsa==4.7.2; python_version >= '3.6'
s3transfer==0.5.0; python_version >= '3.6'
secretstorage==3.3.1; sys_platform == 'linux'
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
snowflake-connector-python[secure-local-storage]==2.5.1; python_version >= '3.6'
sqlparse==0.4.2; python_version >= '3.5'
pytz==2022.1
PyYAML==6.0
requests==2.28.1
SecretStorage==3.3.2
six==1.16.0
snowflake-connector-python==2.7.9
sqlparse==0.4.2
text-unidecode==1.3
typing-extensions==3.10.0.2
urllib3==1.26.7; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
werkzeug==2.0.2; python_version >= '3.6'
zipp==3.6.0; python_version >= '3.6'
typing_extensions==4.3.0
urllib3==1.26.10
Werkzeug==2.1.2
zipp==3.8.1

0 comments on commit e94b343

Please sign in to comment.