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

PIT table usage #64

Closed
klaus1978 opened this issue Apr 5, 2023 · 2 comments
Closed

PIT table usage #64

klaus1978 opened this issue Apr 5, 2023 · 2 comments

Comments

@klaus1978
Copy link

Hi *,

  1. I wonder if I can create a PIT from a SAT that keeps a Dependent Child key?
  2. The Dimension Key is unclear to me. Is it a field coming from the stage model? Or is it creating a "surrogate key" that can be used in the fact/dimension tables afterwards?

Best regards
Klaus

@tkirschke
Copy link
Member

Hi @klaus1978 ,

Thanks for reaching out!

  1. I wonder if I can create a PIT from a SAT that keeps a Dependent Child key?

How have you modeled the Dependant Child Key? There is a page in our Wiki, check it here. If you have followed this implementation, the satellites should not deviate compared to a non-dependant child construct, and can therefore be used in PITs as usual.

  1. The Dimension Key is unclear to me. Is it a field coming from the stage model? Or is it creating a "surrogate key" that can be used in the fact/dimension tables afterwards?

The dimension key is a surrogate key generated in the loading process of a PIT, out of the hash key and the snapshot timestamp. It is used for incremental loading of the PIT. The option in the macro will just influence the name of the new column. Hope this helps for understanding!

Let me know if things are more clear now!

Kind regards,
Tim

@tkirschke
Copy link
Member

Hi @klaus1978,

Were you already able to work through my last post? Let me know if it helped and can be closed, or if you need more input from my side!

Kind regards,
Tim

@tkiehn tkiehn closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants