[Bug] unique_fivetran_platform__audit_user_activity_log_id not using log composite key #100
Closed
1 of 4 tasks
Labels
error:unforced
status:in_progress
Currently being worked on
type:bug
Something is broken or incorrect
update_type:testing
Primary focus requires testing updates
Is there an existing issue for this?
Describe the issue
Fivetran platform's Log table is not unique on the id field but is a composite key of id and timestamp - see ERD

Therefore testing uniqueness of log_id in fivetran_platform__audit_user_activity model does not make sense - i.e. uniqueness of combination of columns
log_id
andoccurred_at
would needed (or the fieldlog_id
needs to become a combination of id and timestamp from the table log).Relevant error log or model output
Expected behavior
model test passes
dbt Project configurations
vars:
fivetran_log:
fivetran_platform_database: ___
Package versions
packages:
package: dbt-labs/stitch_utils
version: 0.5.0
package: dbt-labs/audit_helper
version: 0.9.0
package: dbt-labs/codegen
version: 0.12.0
package: fivetran/fivetran_log
version: 1.3.0
package: dbt-labs/dbt_utils
version: 1.1.1
package: dbt-labs/dbt_external_tables
version: 0.8.7
What database are you using dbt with?
bigquery
dbt Version
Core:
Plugins:
Additional Context
No response
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: