finn_frotscher
04/27/2022, 1:37 PMvisch
04/27/2022, 1:44 PMtransformers:
- name: dbt
namespace: dbt
docs: <https://meltano.com/docs/transforms.html>
repo: <https://github.com/dbt-labs/dbt-core>
pip_url: >
dbt-core~=1.0.0
dbt-postgres~=1.0.0
dbt-redshift~=1.0.0
dbt-snowflake~=1.0.0
dbt-bigquery~=1.0.0
settings:
- name: project_dir
value: $MELTANO_PROJECT_ROOT/transform
- name: profiles_dir
env: DBT_PROFILES_DIR
value: $MELTANO_PROJECT_ROOT/transform/profile
- name: target
value: $MELTANO_LOAD__DIALECT
- name: source_schema
value: $MELTANO_LOAD__TARGET_SCHEMA
- name: target_schema
value: analytics
- name: models
value: $MELTANO_TRANSFORM__PACKAGE_NAME $MELTANO_EXTRACTOR_NAMESPACE my_meltano_project
commands:
clean:
args: clean
description: Delete all folders in the clean-targets list (usually the dbt_modules and target directories.)
compile:
args: compile --models $DBT_MODELS
description: Generates executable SQL from source model, test, and analysis files. Compiled SQL files are written to the target/ directory.
deps:
args: deps
description: Pull the most recent version of the dependencies listed in packages.yml
run:
args: run --models $DBT_MODELS
description: Compile SQL and execute against the current target database.
seed:
args: seed
description: Load data from csv files into your data warehouse.
snapshot:
args: snapshot
description: Execute snapshots defined in your project.
test:
args: test
description: Runs tests on data in deployed models.
Just copy this replace the dbt specefic stuff with fal, and you should be off to the racesfinn_frotscher
04/27/2022, 1:45 PMtaylor
04/27/2022, 1:53 PMmeltano run
- something like meltano run dbt:my_models my_python_script dbt:my_test
should workfinn_frotscher
04/27/2022, 1:59 PMfinn_frotscher
04/27/2022, 2:04 PMfinn_frotscher
04/27/2022, 2:08 PMutilities:
- name: fal
namespace: fal
pip_url: dbt-bigquery==1.0.0 fal
executable: fal
settings:
- name: project_dir
value: $MELTANO_PROJECT_ROOT/transform
- name: profiles_dir
env: DBT_PROFILES_DIR
value: $MELTANO_PROJECT_ROOT/transform/profile
commands:
run:
args: run --before
description: wip
When i run meltano invoke fal run
, the settings dont get forwarded. i havent used this feature of meltano yet. am i doing it wrong?visch
04/27/2022, 2:10 PMconfig
object so something like
utilities:
- name: fal
namespace: fal
pip_url: dbt-bigquery==1.0.0 fal
executable: fal
settings:
- name: project_dir
value: $MELTANO_PROJECT_ROOT/transform
- name: profiles_dir
env: DBT_PROFILES_DIR
value: $MELTANO_PROJECT_ROOT/transform/profile
config:
project_dir: abc
profiles_dir: blash
commands:
run:
args: run --before
description: wip
finn_frotscher
04/27/2022, 2:12 PMcommands: run
with meltano invoke fal:run
?visch
04/27/2022, 2:12 PMfinn_frotscher
04/27/2022, 2:51 PM(bi) ⟩meltano invoke fal:run .../elt/meltano
Could not read dbt run_results artifact
14:51:21 Found 0 models, 0 tests, 0 snapshots, 0 analyses, 396 macros, 0 operations, 1 seed file, 0 sources, 0 exposures, 0 metrics
16:51:22 | Starting fal run for following models and scripts:
its not picking up any of the scripts.visch
04/27/2022, 2:52 PMvisch
04/27/2022, 2:52 PMfinn_frotscher
04/27/2022, 2:53 PMrun
command
utilities:
- name: fal
namespace: fal
pip_url: dbt-bigquery==1.0.0 fal
executable: fal
settings:
- name: project-dir
value: $MELTANO_PROJECT_ROOT/transform
- name: profiles-dir
env: DBT_PROFILES_DIR
value: $MELTANO_PROJECT_ROOT/transform/profile
config:
project-dir: $MELTANO_PROJECT_ROOT/transform
profiles-dir: $MELTANO_PROJECT_ROOT/transform/profile
commands:
run:
args: run --before --profiles-dir /Users/finn/code/data-cofenster/elt/meltano/transform/profile --project-dir /Users/finn/code/data-cofenster/elt/meltano/transform
description: wip
finn_frotscher
04/27/2022, 2:54 PMfinn_frotscher
04/27/2022, 3:49 PM// dbt_project.yml
vars:
"fal-scripts-path": ./fal_scripts