Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CT-3165] [Bug] Model configurations from the model YML file are not respected #8726

Closed
2 tasks done
siljamardla opened this issue Sep 27, 2023 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@siljamardla
Copy link

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

There is #8520 which refers to problems with Python model configurations specifically, but I believe the root cause might be different in this case, so raising a separate issue.

I have the following model configuration set up in the models.yml file:

models:
  - name: smth_smth
    description: smth_smth
    config:
      materialized: incremental
      incremental_strategy: merge
      unique_key: ["smth_key"]
      partition_by: "created_date"
      on_schema_change: append_new_columns
      schema: smth_schema
      tags: [smth_tag]
    meta:
      owner: '@silja.mardla'
      state: testing

However, when I run the model, dbt will create a VIEW model (our default materialisation from project YML).

Finished running 1 view model

The actual code compiled confirms that a view gets created:

create or replace view `smth_schema`.`smth_smth`
  
  
  as

Also, there are other configurations not being respected, for example tags.

dbt list --select tag:smth_tag

will not return anything

The selection criterion 'tag:smth_tag' does not match any nodes

And it seems like even the meta that comes after the configurations blocks, get lost
image

Expected Behavior

Model configurations respected.

Steps To Reproduce

See above

Relevant log output

No response

Environment

- OS: Mac
- Python: 3.11
- dbt: 1.6.3

Which database adapter are you using with dbt?

other (mention it in "Additional Context")

Additional Context

Databricks

@siljamardla siljamardla added bug Something isn't working triage labels Sep 27, 2023
@github-actions github-actions bot changed the title [Bug] Model configurations from the model YML file are not respected [CT-3165] [Bug] Model configurations from the model YML file are not respected Sep 27, 2023
@siljamardla
Copy link
Author

Looks like I just had the model name wrong, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants