Custom schema elementary

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:

# 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.
    # Applies to all files under models/example/
      materialized: table
      materialized: table
      materialized: view
      +schema: "elementary"
      materialized: table
      +schema: "dim"

    "dbt_date:time_zone": "Europe/Madrid"

Mi profile

  target: 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.

Solved, my enviromental variable wasnt actualized, i neede to open a new cmd.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.