Closed sfwatergit closed 10 months ago
Thanks for reaching out @sfwatergit !
Does this only happen to you for tables with columns that have quoted identifiers like "`faultCount`")?
i.e., does it work if you snapshot a table that only contains "plain" / unquoted column names (like "fault_count")?
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.
Is this a new bug in dbt-core?
Current Behavior
In our development environment, I am running dbt snapshot with the strategy='check' on a table with an example record shown in the following screenshot: The snapshot is defined as follows
Note that even though there is a organizationEntityConfiguration.lastUpdated field, that field is not always populated, hence we do not use the timestamp strategy.
I can verify that nothing is changing in the source table (
bdapi__entities
) betweendbt snapshot
executions, and yet, each time I rundbt snapshot
, a new row is added to the table. This is not the behavior I would expect.Expected Behavior
Given the documentation. I would expect that a new row would be appended only when data changes for a given row. I have attached another screenshot showing that there are many entries for the same entity (with
id=04fcbe57-9928-4121-9d78-38694310ab11
) but with no differences between rows in checked (or for that matter, all) columns. I was not able to capture the dbt metadata fields in the screenshot, but thedbt_scd_id
,dbt_updated_at
,dbt_valid_from
, anddbt_valid_to
are all different as would be expected if there were any changes between snapshot executions.Steps To Reproduce
dbt snapshot
using snapshot configuration provided in current behavior.Relevant log output
Environment
Which database adapter are you using with dbt?
spark
Additional Context
Asked in dbt slack and another user is experiencing the same issue. I didn't receive a reply from dbt devs, though.