Problem using elementary custom schema
I added elementary package to try the available tests and generate reports , but when i add a custom schema it changes all my model target schema to the elementary target schema.
Example: my schema in profiles is dbt_GDBT but with the elementary conf now all model goes to dbt_GDBT_elementary and dim is now generated to dbt_GDBT_elementary_dim
What I’ve already tried
I tried changin the +schema to schema and how i indexated things
Mi dbt_project
# Name your project! Project names should contain only lowercase characters
# and underscores. A good package name should reflect your organization's
# name or the intended use of these models
name: 'my_new_project'
version: '1.0.0'
config-version: 2
# This setting configures which "profile" dbt uses for this project.
profile: 'elementary' #'default'
# These configurations specify where dbt should look for different types of files.
# The `source-paths` config, for example, states that models in this project can be
# found in the "models/" directory. You probably won't need to change these!
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_packages"
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
# In this example config, we tell dbt to build all models in the example/ directory
# as tables. These settings can be overridden in the individual model files
# using the `{{ config(...) }}` macro.
models:
my_new_project:
# Applies to all files under models/example/
data-vault-row:
materialized: table
historico:
materialized: table
staging:
materialized: view
elementary:
+schema: "elementary"
dim:
materialized: table
+schema: "dim"
vars:
"dbt_date:time_zone": "Europe/Madrid"
Mi profile
elementary:
target: dev
outputs:
dev:
type: "snowflake"
account: "{{ env_var('DBT_ACCOUNT') }}"
user: "{{ env_var('DBT_USER') }}"
password: "{{ env_var('DBT_PASSWORD') }}"
role: "{{ env_var('DBT_ROLE') }}"
warehouse: "{{ env_var('DBT_WAREHOUSE') }}"
database: "{{ env_var('DBT_DATABASE') }}"
schema: "{{ env_var('DBT_SCHEMA') }}"
threads: 4
I would like elementary to be generated on schema dbt_GDBT_elementary, dim on dbt_GDBT_dim and the others on dbt_GDBT.