Merged PR 2990: staging Hubspot contacts

# Description

Creation on stg_hubspot__contacts model

# Checklist

- [x] The edited models and dependants run properly with production data.
- [x] The edited models are sufficiently documented.
- [x] The edited models contain PK tests, and I've ran and passed them.
- [ ] I have checked for DRY opportunities with other models and docs.
- [ ] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

staging Hubspot contacts
This commit is contained in:
Joaquin Ossa 2024-10-04 09:48:37 +00:00 committed by Pablo Martín
commit 9ad768f6bb
2 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ models:
- unique
- not_null
- name: archived
- name: is_archived
data_type: boolean
description: ""

View file

@ -1,9 +1,9 @@
with
raw_contacts as (select * from {{ source("hubspot", "contacts") }}),
stg_core__contacts as (
stg_hubspot__contacts as (
select
{{ adapter.quote("id") }} as id_contact,
{{ adapter.quote("archived") }} as archived,
{{ adapter.quote("archived") }} as is_archived,
{{ adapter.quote("companies") }} as companies,
{{ adapter.quote("properties") }} as properties,
{{ adapter.quote("createdAt") }} as created_at_utc,
@ -15,4 +15,4 @@ with
from raw_contacts
)
select *
from stg_core__contacts
from stg_hubspot__contacts