Open koillinengit opened 2 months ago
This goes wrong only if the model is incremental. As a view this is working fine.
Hello @DVAlexHiggs @koillinengit - We are encountering the same issue with the effectivity satellites. What would you expect the approximate timing for this fix to be deployed?
One notice more: materialized=table parameter works also fine like view. Only materialized=incremental is working incorrectly.
Any advance on this?
Describe the bug If we update for example sales group (SALES_GROUP_HK) from 100 --> 200 --> 100. Only the two first values are recorded in effectivity satellite because the latest records in effectivity satellites is checked over the partition of linked key (l_SALES_DOCUMENT_HK), when it is supposed to be done with the driving key.
Environment
dbt version: 1.8.5 automate_dv version: 0.11.0 Database/Platform: DataBricks
To Reproduce Steps to reproduce the behavior:
{{ automate_dv.eff_sat(src_pk=src_pk, src_dfk=src_dfk, src_sfk=src_sfk, src_start_date=src_start_date, src_end_date=src_end_date, src_eff=src_eff, src_ldts=src_ldts, src_source=src_source, source_model=source_model) }}
Expected behavior Now there is only two records in the effectivity satellite and the middle values (or row) are effective when the latest values should be
Screenshots
Log files
Additional context
AB#5602