This commit is contained in:
Ubuntu 2022-05-19 13:58:25 +07:00
parent 1604aa8c9c
commit f1faad9777
2 changed files with 11 additions and 1 deletions

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
#!bin/bash
push:
git add . && git commit -a -m "update" && git push
run:
dbt deps --profiles-dir=. --project-dir=.
#dbt run --profiles-dir=. --project-dir=. --full-refresh
dbt run --profiles-dir=. --project-dir=. --full-refresh --select tracking_product_shares

View File

@ -12,7 +12,8 @@ select
{{ adapter.quote('user') }} AS seller_id,
products AS product_id,
{{ adapter.quote('options') }}::json->>'action' AS options_action,
createdat::timestamp AS created_at,
to_timestamp(createdat, 'YYYY-MM-DDTHH:MI:SSZ') AS created_at,
-- createdat::timestamp AS created_at,
_airbyte_ab_id,
_airbyte_emitted_at,
{{ current_timestamp() }} as _airbyte_normalized_at,