diff --git a/models/intermediate/core/schema.yml b/models/intermediate/core/schema.yml index f23da30..9bce5bf 100644 --- a/models/intermediate/core/schema.yml +++ b/models/intermediate/core/schema.yml @@ -2344,7 +2344,11 @@ models: 01-New, 02-Never Booked, 04-Active, 05-Churning, 06-Inactive, 07-Reactivated, 99-Not in Husbpot. data_tests: - - not_null + - not_null: + # Exclude the users that have been migrated + # in the last 24 hours, since they might not yet be in + # HubSpot and thus the lifecycle state is not yet set. + where: "user_estimated_migration_date_utc <> current_date - INTERVAL '1 day'" - accepted_values: values: - 01-New