From f1faad97774bdd62d11fa153b7d90d4339ac45f5 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 19 May 2022 13:58:25 +0700 Subject: [PATCH] update --- Makefile | 9 +++++++++ .../airbyte_tables/unibag/tracking_product_shares.sql | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Makefile 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,