mirror of
https://gitlab.com/cief-data/dbt_cloud.git
synced 2026-08-19 04:14:00 +00:00
init from dbt cloud hosting repo
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
-- IMPORTS
|
||||
WITH segments AS (
|
||||
SELECT * FROM {{ source('src_exchange_mysql', 'segments') }}
|
||||
),
|
||||
|
||||
|
||||
-- LOGIC
|
||||
segments_rename AS (
|
||||
|
||||
SELECT
|
||||
segments.id,
|
||||
segments.name,
|
||||
segments.type,
|
||||
segments.status,
|
||||
segments.deleted_at,
|
||||
segments.created_at,
|
||||
segments.updated_at,
|
||||
current_timestamp() AS _dbt_ran_at
|
||||
|
||||
FROM segments
|
||||
),
|
||||
|
||||
|
||||
-- FINAL
|
||||
final__base_exchange__segments AS (
|
||||
|
||||
SELECT
|
||||
id,
|
||||
name,
|
||||
type,
|
||||
status,
|
||||
deleted_at,
|
||||
created_at,
|
||||
updated_at,
|
||||
_dbt_ran_at
|
||||
|
||||
FROM segments_rename
|
||||
)
|
||||
|
||||
SELECT * FROM final__base_exchange__segments
|
||||
Reference in New Issue
Block a user