ScalefreeCOM / datavault4dbt

Scalefree's dbt package for a Data Vault 2.0 implementation congruent to the original Data Vault 2.0 definition by Dan Linstedt including the Staging Area, DV2.0 main entities, PITs and Snapshot Tables.
https://www.scalefree.com/
Apache License 2.0
143 stars 27 forks source link

fix hub key renaming if there are different namings for bk and hkey #242

Closed tkiehn closed 2 months ago

tkiehn commented 2 months ago

Description

fix hub key renaming if there are different namings for bk and hkey in the source_model: and the staging-model itself and there is only one source model

When only one source_model is specified inside the staging-macro but the source_model key-namings are differing from the definitions in the staging model the renaming would only happen when there are more than one source-model selected.

Related PR with more context: #239

Type of change

How Has This Been Tested?

Manual testing via skeleton-project.

Checklist:

remoteworkflow[bot] commented 2 months ago

Link to workflow summary: https://github.com/ScalefreeCOM/datavault4dbt-ci-cd/actions/runs/10668335468


RESULTS for Synapse: :white_check_mark: dbt-tests
:white_check_mark: dbt-macro-tests


RESULTS for Postgres: :white_check_mark: dbt-tests :white_check_mark: dbt-macro-tests


RESULTS for BigQuery: :white_check_mark: dbt-tests :white_check_mark: dbt-macro-tests


RESULTS for Redshift: :white_check_mark: dbt-tests :white_check_mark: dbt-macro-tests


RESULTS for Snowflake: :white_check_mark: dbt-tests :white_check_mark: dbt-macro-tests


RESULTS for Exasol: :x: dbt-tests :x: dbt-macro-tests