Johan Vrolix
10/24/2024, 11:42 AMEdgar Ramírez (Arch.dev)
10/24/2024, 2:36 PMJohan Vrolix
10/24/2024, 3:04 PMEdgar Ramírez (Arch.dev)
10/24/2024, 4:02 PMmeltano.yml and dbt_project.yml look like?Johan Vrolix
10/24/2024, 7:51 PMversion: 1
env:
DBT_CLEAN_PROJECT_FILES_ONLY: 'false'
default_environment: dev
project_id: e7660772-c6df-4e04-9a94-21281710aba6
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
- name: source-northwind
inherit_from: tap-postgres
config:
host: localhost
user: northwind
database: northwind
port: 5435
select:
- public-shippers.*
- public-suppliers.*
- public-customers.*
- public-employees.*
- public-orders.*
- public-order_details.*
- public-products.*
- public-categories.*
- public-territories.*
- public-employee_territories.*
- public-us_states.*
- public-customer_demographics.*
- public-customer_customer_demo.*
- public-region.*
- name: tap-rest-api-msdk
variant: widen
pip_url: tap-rest-api-msdk
- name: ellie-metadata
inherit_from: tap-rest-api-msdk
config:
api_url: <https://optimalist.ellie.ai>
streams:
- name: metadata
path: /api/v1/models/$ELLIE_ID
primary_keys: ["model_modelId"]
loaders:
- name: target-postgres
variant: meltanolabs
pip_url: meltanolabs-target-postgres
- name: target-dwh
inherit_from: target-postgres
config:
host: localhost
user: dwh
database: dwh
port: 5433
threads: 4
utilities:
- name: dbt-postgres
variant: dbt-labs
pip_url: dbt-core dbt-postgres meltano-dbt-ext~=0.3.0
config:
host: localhost
port: 5433
user: dwh
schema: dwh
database: dwhJohan Vrolix
10/24/2024, 7:52 PMname: my_meltano_project
version: '1.0'
profile: meltano
config-version: 2
require-dbt-version: [">=1.0.0", "<2.0.0"]
flags:
send_anonymous_usage_stats: False
use_colors: True
model-paths:
- models
analysis-paths:
- analysis
test-paths:
- tests
seed-paths:
- data
macro-paths:
- macros
snapshot-paths:
- snapshots
log-path: logs
packages-install-path: dbt_packages
clean-targets:
- ../.meltano/transformers/dbt/target
- dbt_packages
- logs
models:
my_meltano_project:
staging_northwind:
+schema: staging_northwind
+materialized: view
raw_vault:
+schema: rdv
+materialized: incremental
business_vault:
+schema: bdv
+materialized: view
information_marts:
+schema: im
+materialized: view
ellie:
+schema: ellie_metadata
+materialized: viewEdgar Ramírez (Arch.dev)
10/25/2024, 9:40 PMJohan Vrolix
10/26/2024, 6:09 AMMatt Menzenski
10/28/2024, 1:18 PMgenerate_schema_name macro:
{% macro generate_schema_name(custom_schema_name, node) -%}
{%- set default_schema = target.schema -%}
{%- if custom_schema_name is none -%}
{{ default_schema }}
{%- else -%}
{{ custom_schema_name | trim }}
{%- endif -%}
{%- endmacro %}Johan Vrolix
10/28/2024, 1:19 PMJohan Vrolix
10/28/2024, 1:22 PMMatt Menzenski
10/28/2024, 1:24 PMJohan Vrolix
10/28/2024, 2:34 PM