We came across a bug in your code (I think). You have to call the function type_2_scd_upsert with the same data, and you get incorrect behaviour (in my opinion). It is simple to induce. An example is shown below, where INVLDT_LVL_KEYis the primary key:
Hello,
We came across a bug in your code (I think). You have to call the function
type_2_scd_upsert
with the same data, and you get incorrect behaviour (in my opinion). It is simple to induce. An example is shown below, whereINVLDT_LVL_KEY
is the primary key:Original dataframe:![image](https://user-images.githubusercontent.com/96056761/219087222-13608796-3008-48d8-bac7-6ffc6de1d47d.png)
Updating dataframe:![image](https://user-images.githubusercontent.com/96056761/219088285-5f1eb2cf-f0be-4c32-b16d-569bb8a1d641.png)
After update (bug?):![image](https://user-images.githubusercontent.com/96056761/219086414-7622a580-0245-45af-9c28-c42c6bb8e8f1.png)
Desired outcome?![image](https://user-images.githubusercontent.com/96056761/219086637-a8e29fd3-7d36-493e-8872-454616a6c436.png)
We are using mack 0.2.0.
Thanks for your feedback.