Skip to content

Commit

Permalink
updated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDee committed Dec 11, 2023
1 parent 408689b commit 48d660f
Show file tree
Hide file tree
Showing 178 changed files with 7,957 additions and 6,993 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
-- Read Elements From Semantic Model 'revenue'
SELECT
revenue_src_10006.revenue AS txn_revenue
, DATE_TRUNC('day', revenue_src_10006.created_at) AS ds__day
, DATE_TRUNC('week', revenue_src_10006.created_at) AS ds__week
, DATE_TRUNC('month', revenue_src_10006.created_at) AS ds__month
, DATE_TRUNC('quarter', revenue_src_10006.created_at) AS ds__quarter
, DATE_TRUNC('year', revenue_src_10006.created_at) AS ds__year
, EXTRACT(year FROM revenue_src_10006.created_at) AS ds__extract_year
, EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter
, EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month
, EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day
, EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow
, EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy
, DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day
, DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week
, DATE_TRUNC('month', revenue_src_10006.created_at) AS company__ds__month
, DATE_TRUNC('quarter', revenue_src_10006.created_at) AS company__ds__quarter
, DATE_TRUNC('year', revenue_src_10006.created_at) AS company__ds__year
, EXTRACT(year FROM revenue_src_10006.created_at) AS company__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month
, EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day
, EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy
, revenue_src_10006.user_id AS user
, revenue_src_10006.user_id AS company__user
FROM ***************************.fct_revenue revenue_src_10006
revenue_src_10007.revenue AS txn_revenue
, DATE_TRUNC('day', revenue_src_10007.created_at) AS ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS ds__extract_day
, EXTRACT(isodow FROM revenue_src_10007.created_at) AS ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS ds__extract_doy
, DATE_TRUNC('day', revenue_src_10007.created_at) AS company__ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS company__ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS company__ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS company__ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS company__ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS company__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS company__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS company__ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS company__ds__extract_day
, EXTRACT(isodow FROM revenue_src_10007.created_at) AS company__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS company__ds__extract_doy
, revenue_src_10007.user_id AS user
, revenue_src_10007.user_id AS company__user
FROM ***************************.fct_revenue revenue_src_10007
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
-- Read Elements From Semantic Model 'id_verifications'
SELECT
1 AS identity_verifications
, DATE_TRUNC('day', id_verifications_src_10003.ds) AS ds__day
, DATE_TRUNC('week', id_verifications_src_10003.ds) AS ds__week
, DATE_TRUNC('month', id_verifications_src_10003.ds) AS ds__month
, DATE_TRUNC('quarter', id_verifications_src_10003.ds) AS ds__quarter
, DATE_TRUNC('year', id_verifications_src_10003.ds) AS ds__year
, EXTRACT(year FROM id_verifications_src_10003.ds) AS ds__extract_year
, EXTRACT(quarter FROM id_verifications_src_10003.ds) AS ds__extract_quarter
, EXTRACT(month FROM id_verifications_src_10003.ds) AS ds__extract_month
, EXTRACT(day FROM id_verifications_src_10003.ds) AS ds__extract_day
, EXTRACT(isodow FROM id_verifications_src_10003.ds) AS ds__extract_dow
, EXTRACT(doy FROM id_verifications_src_10003.ds) AS ds__extract_doy
, DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__day
, DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week
, DATE_TRUNC('month', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__month
, DATE_TRUNC('quarter', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__quarter
, DATE_TRUNC('year', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__year
, EXTRACT(year FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_year
, EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_quarter
, EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month
, EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day
, EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow
, EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy
, id_verifications_src_10003.verification_type
, DATE_TRUNC('day', id_verifications_src_10003.ds) AS verification__ds__day
, DATE_TRUNC('week', id_verifications_src_10003.ds) AS verification__ds__week
, DATE_TRUNC('month', id_verifications_src_10003.ds) AS verification__ds__month
, DATE_TRUNC('quarter', id_verifications_src_10003.ds) AS verification__ds__quarter
, DATE_TRUNC('year', id_verifications_src_10003.ds) AS verification__ds__year
, EXTRACT(year FROM id_verifications_src_10003.ds) AS verification__ds__extract_year
, EXTRACT(quarter FROM id_verifications_src_10003.ds) AS verification__ds__extract_quarter
, EXTRACT(month FROM id_verifications_src_10003.ds) AS verification__ds__extract_month
, EXTRACT(day FROM id_verifications_src_10003.ds) AS verification__ds__extract_day
, EXTRACT(isodow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow
, EXTRACT(doy FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy
, DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__day
, DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__week
, DATE_TRUNC('month', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__month
, DATE_TRUNC('quarter', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__quarter
, DATE_TRUNC('year', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__year
, EXTRACT(year FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_year
, EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_quarter
, EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month
, EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day
, EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow
, EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_doy
, id_verifications_src_10003.verification_type AS verification__verification_type
, id_verifications_src_10003.verification_id AS verification
, id_verifications_src_10003.user_id AS user
, id_verifications_src_10003.user_id AS verification__user
FROM ***************************.fct_id_verifications id_verifications_src_10003
, DATE_TRUNC('day', id_verifications_src_10004.ds) AS ds__day
, DATE_TRUNC('week', id_verifications_src_10004.ds) AS ds__week
, DATE_TRUNC('month', id_verifications_src_10004.ds) AS ds__month
, DATE_TRUNC('quarter', id_verifications_src_10004.ds) AS ds__quarter
, DATE_TRUNC('year', id_verifications_src_10004.ds) AS ds__year
, EXTRACT(year FROM id_verifications_src_10004.ds) AS ds__extract_year
, EXTRACT(quarter FROM id_verifications_src_10004.ds) AS ds__extract_quarter
, EXTRACT(month FROM id_verifications_src_10004.ds) AS ds__extract_month
, EXTRACT(day FROM id_verifications_src_10004.ds) AS ds__extract_day
, EXTRACT(isodow FROM id_verifications_src_10004.ds) AS ds__extract_dow
, EXTRACT(doy FROM id_verifications_src_10004.ds) AS ds__extract_doy
, DATE_TRUNC('day', id_verifications_src_10004.ds_partitioned) AS ds_partitioned__day
, DATE_TRUNC('week', id_verifications_src_10004.ds_partitioned) AS ds_partitioned__week
, DATE_TRUNC('month', id_verifications_src_10004.ds_partitioned) AS ds_partitioned__month
, DATE_TRUNC('quarter', id_verifications_src_10004.ds_partitioned) AS ds_partitioned__quarter
, DATE_TRUNC('year', id_verifications_src_10004.ds_partitioned) AS ds_partitioned__year
, EXTRACT(year FROM id_verifications_src_10004.ds_partitioned) AS ds_partitioned__extract_year
, EXTRACT(quarter FROM id_verifications_src_10004.ds_partitioned) AS ds_partitioned__extract_quarter
, EXTRACT(month FROM id_verifications_src_10004.ds_partitioned) AS ds_partitioned__extract_month
, EXTRACT(day FROM id_verifications_src_10004.ds_partitioned) AS ds_partitioned__extract_day
, EXTRACT(isodow FROM id_verifications_src_10004.ds_partitioned) AS ds_partitioned__extract_dow
, EXTRACT(doy FROM id_verifications_src_10004.ds_partitioned) AS ds_partitioned__extract_doy
, id_verifications_src_10004.verification_type
, DATE_TRUNC('day', id_verifications_src_10004.ds) AS verification__ds__day
, DATE_TRUNC('week', id_verifications_src_10004.ds) AS verification__ds__week
, DATE_TRUNC('month', id_verifications_src_10004.ds) AS verification__ds__month
, DATE_TRUNC('quarter', id_verifications_src_10004.ds) AS verification__ds__quarter
, DATE_TRUNC('year', id_verifications_src_10004.ds) AS verification__ds__year
, EXTRACT(year FROM id_verifications_src_10004.ds) AS verification__ds__extract_year
, EXTRACT(quarter FROM id_verifications_src_10004.ds) AS verification__ds__extract_quarter
, EXTRACT(month FROM id_verifications_src_10004.ds) AS verification__ds__extract_month
, EXTRACT(day FROM id_verifications_src_10004.ds) AS verification__ds__extract_day
, EXTRACT(isodow FROM id_verifications_src_10004.ds) AS verification__ds__extract_dow
, EXTRACT(doy FROM id_verifications_src_10004.ds) AS verification__ds__extract_doy
, DATE_TRUNC('day', id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__day
, DATE_TRUNC('week', id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__week
, DATE_TRUNC('month', id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__month
, DATE_TRUNC('quarter', id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__quarter
, DATE_TRUNC('year', id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__year
, EXTRACT(year FROM id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__extract_year
, EXTRACT(quarter FROM id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__extract_quarter
, EXTRACT(month FROM id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__extract_month
, EXTRACT(day FROM id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__extract_day
, EXTRACT(isodow FROM id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__extract_dow
, EXTRACT(doy FROM id_verifications_src_10004.ds_partitioned) AS verification__ds_partitioned__extract_doy
, id_verifications_src_10004.verification_type AS verification__verification_type
, id_verifications_src_10004.verification_id AS verification
, id_verifications_src_10004.user_id AS user
, id_verifications_src_10004.user_id AS verification__user
FROM ***************************.fct_id_verifications id_verifications_src_10004
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
-- Read Elements From Semantic Model 'users_latest'
SELECT
DATE_TRUNC('day', users_latest_src_10008.ds) AS ds_latest__day
, DATE_TRUNC('week', users_latest_src_10008.ds) AS ds_latest__week
, DATE_TRUNC('month', users_latest_src_10008.ds) AS ds_latest__month
, DATE_TRUNC('quarter', users_latest_src_10008.ds) AS ds_latest__quarter
, DATE_TRUNC('year', users_latest_src_10008.ds) AS ds_latest__year
, EXTRACT(year FROM users_latest_src_10008.ds) AS ds_latest__extract_year
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds_latest__extract_quarter
, EXTRACT(month FROM users_latest_src_10008.ds) AS ds_latest__extract_month
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day
, EXTRACT(isodow FROM users_latest_src_10008.ds) AS ds_latest__extract_dow
, EXTRACT(doy FROM users_latest_src_10008.ds) AS ds_latest__extract_doy
, users_latest_src_10008.home_state_latest
, DATE_TRUNC('day', users_latest_src_10008.ds) AS user__ds_latest__day
, DATE_TRUNC('week', users_latest_src_10008.ds) AS user__ds_latest__week
, DATE_TRUNC('month', users_latest_src_10008.ds) AS user__ds_latest__month
, DATE_TRUNC('quarter', users_latest_src_10008.ds) AS user__ds_latest__quarter
, DATE_TRUNC('year', users_latest_src_10008.ds) AS user__ds_latest__year
, EXTRACT(year FROM users_latest_src_10008.ds) AS user__ds_latest__extract_year
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds_latest__extract_quarter
, EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds_latest__extract_month
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day
, EXTRACT(isodow FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow
, EXTRACT(doy FROM users_latest_src_10008.ds) AS user__ds_latest__extract_doy
, users_latest_src_10008.home_state_latest AS user__home_state_latest
, users_latest_src_10008.user_id AS user
FROM ***************************.dim_users_latest users_latest_src_10008
DATE_TRUNC('day', users_latest_src_10009.ds) AS ds_latest__day
, DATE_TRUNC('week', users_latest_src_10009.ds) AS ds_latest__week
, DATE_TRUNC('month', users_latest_src_10009.ds) AS ds_latest__month
, DATE_TRUNC('quarter', users_latest_src_10009.ds) AS ds_latest__quarter
, DATE_TRUNC('year', users_latest_src_10009.ds) AS ds_latest__year
, EXTRACT(year FROM users_latest_src_10009.ds) AS ds_latest__extract_year
, EXTRACT(quarter FROM users_latest_src_10009.ds) AS ds_latest__extract_quarter
, EXTRACT(month FROM users_latest_src_10009.ds) AS ds_latest__extract_month
, EXTRACT(day FROM users_latest_src_10009.ds) AS ds_latest__extract_day
, EXTRACT(isodow FROM users_latest_src_10009.ds) AS ds_latest__extract_dow
, EXTRACT(doy FROM users_latest_src_10009.ds) AS ds_latest__extract_doy
, users_latest_src_10009.home_state_latest
, DATE_TRUNC('day', users_latest_src_10009.ds) AS user__ds_latest__day
, DATE_TRUNC('week', users_latest_src_10009.ds) AS user__ds_latest__week
, DATE_TRUNC('month', users_latest_src_10009.ds) AS user__ds_latest__month
, DATE_TRUNC('quarter', users_latest_src_10009.ds) AS user__ds_latest__quarter
, DATE_TRUNC('year', users_latest_src_10009.ds) AS user__ds_latest__year
, EXTRACT(year FROM users_latest_src_10009.ds) AS user__ds_latest__extract_year
, EXTRACT(quarter FROM users_latest_src_10009.ds) AS user__ds_latest__extract_quarter
, EXTRACT(month FROM users_latest_src_10009.ds) AS user__ds_latest__extract_month
, EXTRACT(day FROM users_latest_src_10009.ds) AS user__ds_latest__extract_day
, EXTRACT(isodow FROM users_latest_src_10009.ds) AS user__ds_latest__extract_dow
, EXTRACT(doy FROM users_latest_src_10009.ds) AS user__ds_latest__extract_doy
, users_latest_src_10009.home_state_latest AS user__home_state_latest
, users_latest_src_10009.user_id AS user
FROM ***************************.dim_users_latest users_latest_src_10009
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
-- Read Elements From Semantic Model 'revenue'
SELECT
revenue_src_10006.revenue AS txn_revenue
, DATE_TRUNC('day', revenue_src_10006.created_at) AS ds__day
, DATE_TRUNC('week', revenue_src_10006.created_at) AS ds__week
, DATE_TRUNC('month', revenue_src_10006.created_at) AS ds__month
, DATE_TRUNC('quarter', revenue_src_10006.created_at) AS ds__quarter
, DATE_TRUNC('year', revenue_src_10006.created_at) AS ds__year
, EXTRACT(year FROM revenue_src_10006.created_at) AS ds__extract_year
, EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter
, EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month
, EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day
, EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow
, EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy
, DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day
, DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week
, DATE_TRUNC('month', revenue_src_10006.created_at) AS company__ds__month
, DATE_TRUNC('quarter', revenue_src_10006.created_at) AS company__ds__quarter
, DATE_TRUNC('year', revenue_src_10006.created_at) AS company__ds__year
, EXTRACT(year FROM revenue_src_10006.created_at) AS company__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month
, EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day
, EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy
, revenue_src_10006.user_id AS user
, revenue_src_10006.user_id AS company__user
FROM ***************************.fct_revenue revenue_src_10006
revenue_src_10007.revenue AS txn_revenue
, DATE_TRUNC('day', revenue_src_10007.created_at) AS ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS ds__extract_day
, EXTRACT(isodow FROM revenue_src_10007.created_at) AS ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS ds__extract_doy
, DATE_TRUNC('day', revenue_src_10007.created_at) AS company__ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS company__ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS company__ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS company__ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS company__ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS company__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS company__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS company__ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS company__ds__extract_day
, EXTRACT(isodow FROM revenue_src_10007.created_at) AS company__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS company__ds__extract_doy
, revenue_src_10007.user_id AS user
, revenue_src_10007.user_id AS company__user
FROM ***************************.fct_revenue revenue_src_10007
Loading

0 comments on commit 48d660f

Please sign in to comment.