diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2831ee3 --- /dev/null +++ b/Makefile @@ -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 diff --git a/models/generated/airbyte_tables/unibag/tracking_product_shares.sql b/models/generated/airbyte_tables/unibag/tracking_product_shares.sql index 236594e..7ee5a90 100644 --- a/models/generated/airbyte_tables/unibag/tracking_product_shares.sql +++ b/models/generated/airbyte_tables/unibag/tracking_product_shares.sql @@ -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,