This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
generated from dbt-labs/jaffle-shop-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meltano.yml
104 lines (100 loc) · 3.11 KB
/
meltano.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Meltano Configuration File
#
# One-time workstation setup:
# > meltano install # Install the plugins declared by the project
#
# Sample usage for end-to-end development:
# > meltano run el # Run the job titled 'el' to extract and load data
# > meltano run t # Run the job titled 't' to transform data
# > meltano run bi # Build and serve the Evidence BI reports
#
# Repeat the same actions as above on "prod":
# > meltano --environment=prod run elt evidence:build
version: 1
jobs:
# Sample usage: `meltano run el`, `meltano run t`, `meltano run el t`, `meltano run elt`
- name: el # Extract and load the raw data
tasks:
- tap-jaffle-shop target-duckdb
- name: t # Transform the raw data
tasks:
- dbt-duckdb:run
- dbt-duckdb:test
- name: elt # Extract, Load, and Transform
tasks:
- tap-jaffle-shop target-duckdb
- dbt-duckdb:run
- dbt-duckdb:test
- name: bi # Launch the Evidence BI dev environment
tasks:
- evidence:dev
- name: bi-compile # Build BI reports and test for breakages
tasks:
- evidence:build-strict
- name: full-build # End-to-end build and test
tasks:
- tap-jaffle-shop target-duckdb
- dbt-duckdb:run
- dbt-duckdb:test
- evidence:build-strict
default_environment: dev
environments:
- name: dev
env:
JAFFLE_DB_PATH: ${MELTANO_PROJECT_ROOT}/reports/jaffle_shop.${MELTANO_ENVIRONMENT}-duckdb
JAFFLE_DB_NAME: jaffle_shop
JAFFLE_RAW_SCHEMA: tap_jaffle_shop
TAP_JAFFLE_SHOP_YEARS: '1'
- name: staging
env:
JAFFLE_DB_PATH: ${MELTANO_PROJECT_ROOT}/reports/jaffle_shop.${MELTANO_ENVIRONMENT}-duckdb
JAFFLE_DB_NAME: jaffle_shop
JAFFLE_RAW_SCHEMA: tap_jaffle_shop
TAP_JAFFLE_SHOP_YEARS: '3'
- name: prod
env:
JAFFLE_DB_PATH: ${MELTANO_PROJECT_ROOT}/reports/jaffle_shop.${MELTANO_ENVIRONMENT}-duckdb
JAFFLE_DB_NAME: jaffle_shop
JAFFLE_RAW_SCHEMA: tap_jaffle_shop
TAP_JAFFLE_SHOP_YEARS: '5'
plugins:
extractors:
- name: tap-jaffle-shop
namespace: tap_jaffle_shop
variant: meltanolabs
pip_url: git+https://github.com/MeltanoLabs/[email protected]
capabilities:
- catalog
- discover
config:
years: 1
stream_name_prefix: ${JAFFLE_RAW_SCHEMA}-raw_
loaders:
- name: target-duckdb
variant: jwills
pip_url: target-duckdb~=0.4
config:
filepath: ${JAFFLE_DB_PATH}
- name: target-parquet
variant: estrategiahq
pip_url: git+https://github.com/estrategiahq/target-parquet.git
utilities:
- name: dbt-duckdb
variant: jwills
pip_url: dbt-core~=1.4.5 dbt-duckdb~=1.4.0 git+https://github.com/meltano/[email protected]
config:
project_dir: ${MELTANO_PROJECT_ROOT}
profiles_dir: ${MELTANO_PROJECT_ROOT}
path: ${JAFFLE_DB_PATH}
- name: evidence
variant: meltanolabs
pip_url: evidence-ext>=0.5
commands:
dev: dev
config:
home_dir: ${MELTANO_PROJECT_ROOT}/reports
settings:
duckdb:
# filename: ${MELTANO_PROJECT_ROOT}/reports/${JAFFLE_DB_NAME}.${MELTANO_ENVIRONMENT}.duckdb
filename: ${JAFFLE_DB_NAME}.${MELTANO_ENVIRONMENT}-duckdb
project_id: ff061732-bd27-4021-916f-e8f8b55fcf9d