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

when columns removed for an incremental model #5978

Open
wants to merge 5 commits into
base: current
Choose a base branch
from

Conversation

RatandeepSharma
Copy link

@RatandeepSharma RatandeepSharma commented Aug 27, 2024

What are you changing in this pull request and why?

If we remove a column from an incremental model and on_schema_change: ignore then execute dbt run, it results in an error. However, based on the documentation, it seems that dbt run should not fail in this scenario. I find this confusing.

##Link of the page
https://docs.getdbt.com/docs/build/incremental-models#default-behavior

I found confusion line as it states "Similarly, if you remove a column from your incremental model, and execute a dbt run, this column will not be removed from your target table."

But during the actual dbt run, it will encounter an error, though the documentation feels that dbt run should not fail.

Link of the page
https://docs.getdbt.com/docs/build/incremental-models#default-behavior
@RatandeepSharma RatandeepSharma requested a review from a team as a code owner August 27, 2024 16:20
Copy link

welcome bot commented Aug 27, 2024

Hello!👋 Thanks for contributing to the dbt product documentation and opening this pull request! ✨
We use Markdown and some HTML to write the dbt product documentation. When writing content, you can use our style guide and content types to understand our writing standards and how we organize information in the dbt product docs.
We'll review your contribution and respond as soon as we can. 😄

Copy link

vercel bot commented Aug 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Sep 18, 2024 7:35pm

@github-actions github-actions bot added the content Improvements or additions to content label Aug 27, 2024
@runleonarun runleonarun added the new contributor Label for first-time contributors label Aug 27, 2024
@github-actions github-actions bot added the size: x-small This change will take under 3 hours to fix. label Aug 27, 2024
Copy link

vercel bot commented Sep 18, 2024

@nghi-ly is attempting to deploy a commit to the dbt-labs Team on Vercel.

A member of the Team first needs to authorize it.

@nghi-ly
Copy link
Contributor

nghi-ly commented Sep 18, 2024

thanks for opening this PR, @RatandeepSharma ! appreciate your contribution to the dbt Labs docs!

@joellabes : i think it's ok to approve and merge this change but want to double-check with you first. do you agree? or have any suggestions? thanks!

Copy link
Contributor

@nghi-ly nghi-ly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chatted with joel today for a technical review. I've reviewed your PR and left some minor feedback.

Thanks for catching this and letting us know, @RatandeepSharma !

Once you make the changes, we can ship it! ❇️

website/docs/docs/build/incremental-models.md Outdated Show resolved Hide resolved
@@ -216,7 +216,7 @@ This is the behavior if `on_schema_change: ignore`, which is set by default, and

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove "and on older versions of dbt" in the sentence on line 215? This has been the default behavior for a while so is safe to remove.

I was hoping to make it easier for you by using the built-in Add a suggestion but I can't select that line for some reason 🤷‍♀️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content new contributor Label for first-time contributors size: x-small This change will take under 3 hours to fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants