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

Merged
merged 8 commits into from
Nov 7, 2024

Conversation

RatandeepSharma
Copy link
Contributor

@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
website/docs/docs/build/incremental-models.md Show resolved Hide resolved
@mirnawong1
Copy link
Contributor

Hey @RatandeepSharma wanted to check in to see if you can make those changes my teammate suggested?

Removed "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.
@RatandeepSharma
Copy link
Contributor Author

Hey @mirnawong1 - I've implemented the changes as recommended.

Copy link
Contributor

@mirnawong1 mirnawong1 left a comment

Choose a reason for hiding this comment

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

thanks again for making those changes and opening up this pr @RatandeepSharma ! great job and merging for you ✨

@mirnawong1 mirnawong1 merged commit d2dc89a into dbt-labs:current Nov 7, 2024
3 of 5 checks passed
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.

4 participants