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

Switch SCD example to entity type natural #4629

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

tlento
Copy link
Contributor

@tlento tlento commented Dec 12, 2023

What are you changing in this pull request and why?

This changes the entity type for the SCD example to natural.

We recommend using the natural type for what is normally the primary entity in an SCD semantic model layout. The distinction is that primary indicates one row per entity value, while natural does not, and in an SCD context there is one row per entity value/time window set, rather than one row per entity value as in standard conformed dimension tables.

Checklist

  • Review the Content style guide so my content adheres to these guidelines.
  • Add a checklist item for anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch."

We recommend using the `natural` type for what is normally the `primary` entity in an SCD semantic model layout.

The distinction is that `primary` indicates one row per entity value, while `natural` does not, and in an SCD context there is one row per entity value/time window set, rather than one row per entity value as in standard conformed dimension tables.
@tlento tlento requested a review from a team as a code owner December 12, 2023 17:07
Copy link

vercel bot commented Dec 12, 2023

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

Name Status Preview Comments Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2023 9:21pm

@tlento tlento requested a review from Jstein77 December 12, 2023 17:07
@github-actions github-actions bot added content Improvements or additions to content size: x-small This change will take under 3 hours to fix. labels Dec 12, 2023
@tlento
Copy link
Contributor Author

tlento commented Dec 12, 2023

Oh wait, we might need to include the primary_entity designation here as well, let me see if I can update it. Or maybe we just leave this alone and let people overload primary in this way?

@mirnawong1
Copy link
Contributor

hey @tlento i left. sugg but let me know if it's best to not add it per eng requirements 🙏

@matthewshaver
Copy link
Contributor

Feedback merged - shipping. Thank you @tlento !

@matthewshaver matthewshaver merged commit 928fdbd into current Dec 13, 2023
7 checks passed
@matthewshaver matthewshaver deleted the tlento-scd-natural-key branch December 13, 2023 21:21
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 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