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:
commit
9ad768f6bb
2 changed files with 4 additions and 4 deletions
|
|
@ -11,7 +11,7 @@ models:
|
|||
- unique
|
||||
- not_null
|
||||
|
||||
- name: archived
|
||||
- name: is_archived
|
||||
data_type: boolean
|
||||
description: ""
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue