Thingies
This commit is contained in:
parent
045ce1ec45
commit
3fce12819b
4 changed files with 35 additions and 2 deletions
|
|
@ -9,7 +9,9 @@ WITH src_reviews AS (
|
|||
FROM
|
||||
{{ ref('src_reviews') }}
|
||||
)
|
||||
SELECT *
|
||||
SELECT
|
||||
{{ dbt_utils.surrogate_key(['listing_id', 'review_date', 'reviewer_name', 'review_text']) }} as review_id,
|
||||
*
|
||||
FROM
|
||||
src_reviews
|
||||
WHERE
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ WITH raw_reviews AS (
|
|||
SELECT
|
||||
listing_id,
|
||||
date AS review_date,
|
||||
reviewer_name AS reviewer_name,
|
||||
comments AS review_text,
|
||||
sentiment AS review_sentiment
|
||||
FROM
|
||||
|
|
|
|||
3
code_thingies/dbtlearn/packages.yml
Normal file
3
code_thingies/dbtlearn/packages.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
packages:
|
||||
- package: dbt-labs/dbt_utils
|
||||
version: 0.8.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue