-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
408689b
commit 48d660f
Showing
178 changed files
with
7,957 additions
and
6,993 deletions.
There are no files selected for viewing
52 changes: 26 additions & 26 deletions
52
...onvert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_query_semantic_model__plan0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
100 changes: 50 additions & 50 deletions
100
...c_model.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_with_measures__plan0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
52 changes: 26 additions & 26 deletions
52
...odel.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_without_measures__plan0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
52 changes: 26 additions & 26 deletions
52
...vert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_query_semantic_model__plan0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.