This repository has been archived by the owner on Sep 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add Extract-Load pipeline using Meltano (#9)
* install meltano feature in codespace * `meltano init` * feat: define meltano plugins, jobs, environments * chore: limit to 1 year for faster dev builds * chore: simplify config * docs: how to invoke with meltano * bump evidence version, update readme * dynamic schema and db names * chore: fix tabs v spaces * feat: working bi dev environment via `meltano invoke evidence:dev` * chore: bump dbt versions * docs: fix evidence header * ci: add e2e ci test * chore: drop extra package.json file * feat: prefer extracted datasets includes code comment with instructions on how to use seed files * feat: meltano 'full-build' job * chore: add env var JAFFLE_RAW_SCHEMA * fix: profile cannot access dbt vars (fixed conflicts) * chore: workaround var issue * fix: sources don't parse vars * fix: missing 'run' in CI cli call * run on push * ci: add missing 'meltano install' * ci: remove extra check, improve output readability * ci: use dbt:build * ci: fix plugin name * chore: bump tap-jaffle-shop version * fix: evidence duckdb filename * fix: add explicit datetime casts * ci: add step descriptions * chore: revert extra datetime casts * chore: Bump evidence to v14 (#3) * feat: dynamic raw data * fix: remove extra dbt var * docs: delete dupe section * fix: use env var for schema name * ci: add github pages publish (#5) * hotfix: relative path for gh pages * ci: upload duckdb file artifact (#7) * Use `meltano install` in Codespaces setup (#8) * Chore: move project-id to client-id (#9) * Bump-evidence-to-v15 (#10) * chore: delete lock files * chore: simplify devcontainer * chore: remove comment * chore: remove non-EL utilities and jobs * chore: tidy up comments * chore: revert and simplify ci pipeline * docs: improve readme for the EL use case * Update reports/pages/index.md * chore: remove extra gitignore line * ci: streamline install * chore: further simplify meltano.yml * ci: add pip caching to speed up builds * ci: keep isolated venvs * fix: relative path to db * chore: simplify header comment * chore: simplify raw sources.yml, get data from extracts * fix: explicit load schema * chore: human-readable project id * codespaces: add `meltano run el` to post-create script * chore: bump tap-jaffle-shop (soon-to-be released) * chore: dummy commit to force ci build * revert: dummy change --------- Co-authored-by: winnie <91998347+gwenwindflower@users.noreply.github.com>
- Loading branch information
1 parent
8e75458
commit d63be46
Showing
13 changed files
with
88 additions
and
156,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ logs/ | |
*.duckdb | ||
*.duckdb.wal | ||
reports/sources/*.csv | ||
.meltano |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Meltano Configuration File | ||
# | ||
# Sample usage: | ||
# > meltano run tap-jaffle-shop target-duckdb | ||
# | ||
# Or equivalently: | ||
# > meltano run el # Run the job named 'el' to extract and load data | ||
|
||
version: 1 | ||
project_id: Jaffle Shop Template Project | ||
|
||
env: | ||
JAFFLE_DB_PATH: ./reports/jaffle_shop.duckdb | ||
JAFFLE_DB_NAME: jaffle_shop | ||
JAFFLE_RAW_SCHEMA: jaffle_raw | ||
|
||
default_environment: dev | ||
environments: | ||
- name: dev | ||
|
||
plugins: | ||
extractors: | ||
- name: tap-jaffle-shop | ||
namespace: tap_jaffle_shop | ||
variant: meltanolabs | ||
pip_url: git+https://github.com/MeltanoLabs/tap-jaffle-shop.git@v0.3.0 | ||
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} | ||
default_target_schema: $JAFFLE_RAW_SCHEMA | ||
|
||
jobs: | ||
# Sample usage: `meltano run el` | ||
# Equivalent to: `meltano run tap-jaffle-shop target-duckdb` | ||
- name: el # Extract and load the raw data | ||
tasks: | ||
- tap-jaffle-shop target-duckdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
build | ||
node_modules | ||
.DS_Store | ||
*.duckdb | ||
*.*duckdb |