Skip to content

Commit efcd756

Browse files
authored
fix: correct condition in tfact_certificate to use max_activity_on (#2210)
1 parent fb7a0fa commit efcd756

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ol_dbt/models/dimensional/tfact_certificate.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ with mitxonline_certificates as (
271271
on w.watermark_platform = cwf.platform
272272
and w.watermark_certificate_type = cwf.certificate_scope
273273
where (
274-
w.max_created_on is null -- platform/type not yet in target, include all
274+
w.max_activity_on is null -- platform/type not yet in target, include all
275275
or coalesce(cwf.certificate_updated_on, cwf.certificate_created_on) >= w.max_activity_on
276276
or cwf.certificate_created_on is null
277277
)

0 commit comments

Comments
 (0)