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

Turbovault4dbt swaps multi_key and payload columns #36

Open
universe-designer opened this issue Sep 11, 2024 · 0 comments
Open

Turbovault4dbt swaps multi_key and payload columns #36

universe-designer opened this issue Sep 11, 2024 · 0 comments

Comments

@universe-designer
Copy link
Contributor

universe-designer commented Sep 11, 2024

stage.py generates the following model

Current state

HD_PERS_LMS_STRUCTURE_STRM:
is_hashdiff: true
columns:
- <Target_column_physical_name 1>
- <Target_column_physical_name 2>
- <Target_column_physical_name ...>

multiactive_config:
multi_active_key:

  - <Multi_Active_Attributes 1>
  - <Multi_Active_Attributes 2>
  - <Multi_Active_Attributes ...>

This is wrong. Multi_Active_Attributes are descriptive attributes, while Target_column_physical_name are used as the multi_active_key

Target state

HD_PERS_LMS_STRUCTURE_STRM:
is_hashdiff: true
columns:
- <Multi_Active_Attributes 1>
- <Multi_Active_Attributes 2>
- <Multi_Active_Attributes ...>

multiactive_config:
multi_active_key:
- <Target_column_physical_name 1>
- <Target_column_physical_name 2>
- <Target_column_physical_name ...>

The change affects datavault4dbt sources as well.

The example in the documentation is confusing. Why does the example show Target_column_physical_name as descriptive attributes if these must be used as the multi_active_key?

It would be great if the datavault4dbt documentation would continue the example from the turbovault4dbt documentation.

@universe-designer universe-designer changed the title Turbovault4dbt swaps muli_key and payload columns Turbovault4dbt swaps multi_key and payload columns Sep 11, 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

1 participant