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

[Bug]: Changes to the sources don't get applied by default [Snowflake] #461

Open
NJarZe opened this issue Nov 25, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@NJarZe
Copy link

NJarZe commented Nov 25, 2024

Overview

Upgraded the package from 2.3.0 to 2.7.0
When I run the dbt run -s dbt_artifacts, the source tables don't include the new fields defined in the source models (e.g. ADAPTER_RESPONSE).

It seems like the incremental materialization is not using on_schema_change. When I look in the dbt_project.yml of the package, the on_schema_change configuration is not there, thus ignoring the new columns.

To fix this, I had to manually change the materialization to table, run dbt run -s dbt_artifacts, then put it back.

How to reproduce

  • Install a prior version of the package without new fields in the source tables.
  • Generate the source tables
  • Upgrade to a newer version of the package which includes new fields
  • Try to run dbt run -s dbt_artifacts

Expected behaviour

I would expect that the incremental configuration adds the new columns to the sources.

Screenshots

Environment

Core:
  - installed: 1.8.8
  - latest:    1.8.9 - Update available!

  Your version of dbt-core is out of date!
  You can find instructions for upgrading here:
  https://docs.getdbt.com/docs/installation

Plugins:
  - snowflake: 1.8.4 - Up to date!

Please paste the contents of your packages.yml file here:

packages:
  - package: dbt-labs/codegen
    version: 0.12.1
  - package: brooklyn-data/dbt_artifacts
    version: 2.7.0
@NJarZe NJarZe added the bug Something isn't working label Nov 25, 2024
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

1 participant