-
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
6c2737e
commit 57fc8ec
Showing
197 changed files
with
7,095 additions
and
6,130 deletions.
There are no files selected for viewing
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
16 changes: 8 additions & 8 deletions
16
...ert_data_source.py/SqlQueryPlan/DuckDbSqlClient/test_convert_query_data_source__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,13 +1,13 @@ | ||
-- Read Elements From Data Source 'revenue' | ||
SELECT | ||
revenue_src_10006.revenue AS txn_revenue | ||
, revenue_src_10006.created_at AS ds | ||
, 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 | ||
, revenue_src_10006.user_id AS user | ||
revenue_src_10007.revenue AS txn_revenue | ||
, revenue_src_10007.created_at AS ds | ||
, 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 | ||
, revenue_src_10007.user_id AS user | ||
FROM ( | ||
-- User Defined SQL Query | ||
SELECT * FROM ***************************.fct_revenue | ||
) revenue_src_10006 | ||
) revenue_src_10007 |
52 changes: 26 additions & 26 deletions
52
...e.py/SqlQueryPlan/DuckDbSqlClient/test_convert_table_data_source_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,29 +1,29 @@ | ||
-- Read Elements From Data Source 'id_verifications' | ||
SELECT | ||
1 AS identity_verifications | ||
, id_verifications_src_10003.ds | ||
, 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 | ||
, id_verifications_src_10003.ds_partitioned | ||
, 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 | ||
, id_verifications_src_10003.verification_type | ||
, id_verifications_src_10003.ds AS verification__ds | ||
, 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 | ||
, id_verifications_src_10003.ds_partitioned AS verification__ds_partitioned | ||
, 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 | ||
, 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 | ||
, id_verifications_src_10004.ds | ||
, 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 | ||
, id_verifications_src_10004.ds_partitioned | ||
, 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 | ||
, id_verifications_src_10004.verification_type | ||
, id_verifications_src_10004.ds AS verification__ds | ||
, 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 | ||
, id_verifications_src_10004.ds_partitioned AS verification__ds_partitioned | ||
, 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 | ||
, 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 |
28 changes: 14 additions & 14 deletions
28
...y/SqlQueryPlan/DuckDbSqlClient/test_convert_table_data_source_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,16 +1,16 @@ | ||
-- Read Elements From Data Source 'users_latest' | ||
SELECT | ||
users_latest_src_10008.ds | ||
, DATE_TRUNC('week', users_latest_src_10008.ds) AS ds__week | ||
, DATE_TRUNC('month', users_latest_src_10008.ds) AS ds__month | ||
, DATE_TRUNC('quarter', users_latest_src_10008.ds) AS ds__quarter | ||
, DATE_TRUNC('year', users_latest_src_10008.ds) AS ds__year | ||
, users_latest_src_10008.home_state_latest | ||
, users_latest_src_10008.ds AS user__ds | ||
, DATE_TRUNC('week', users_latest_src_10008.ds) AS user__ds__week | ||
, DATE_TRUNC('month', users_latest_src_10008.ds) AS user__ds__month | ||
, DATE_TRUNC('quarter', users_latest_src_10008.ds) AS user__ds__quarter | ||
, DATE_TRUNC('year', users_latest_src_10008.ds) AS user__ds__year | ||
, 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 | ||
users_latest_src_10009.ds | ||
, DATE_TRUNC('week', users_latest_src_10009.ds) AS ds__week | ||
, DATE_TRUNC('month', users_latest_src_10009.ds) AS ds__month | ||
, DATE_TRUNC('quarter', users_latest_src_10009.ds) AS ds__quarter | ||
, DATE_TRUNC('year', users_latest_src_10009.ds) AS ds__year | ||
, users_latest_src_10009.home_state_latest | ||
, users_latest_src_10009.ds AS user__ds | ||
, DATE_TRUNC('week', users_latest_src_10009.ds) AS user__ds__week | ||
, DATE_TRUNC('month', users_latest_src_10009.ds) AS user__ds__month | ||
, DATE_TRUNC('quarter', users_latest_src_10009.ds) AS user__ds__quarter | ||
, DATE_TRUNC('year', users_latest_src_10009.ds) AS user__ds__year | ||
, 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 |
16 changes: 8 additions & 8 deletions
16
...t_data_source.py/SqlQueryPlan/PostgresSqlClient/test_convert_query_data_source__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,13 +1,13 @@ | ||
-- Read Elements From Data Source 'revenue' | ||
SELECT | ||
revenue_src_10006.revenue AS txn_revenue | ||
, revenue_src_10006.created_at AS ds | ||
, 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 | ||
, revenue_src_10006.user_id AS user | ||
revenue_src_10007.revenue AS txn_revenue | ||
, revenue_src_10007.created_at AS ds | ||
, 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 | ||
, revenue_src_10007.user_id AS user | ||
FROM ( | ||
-- User Defined SQL Query | ||
SELECT * FROM ***************************.fct_revenue | ||
) revenue_src_10006 | ||
) revenue_src_10007 |
52 changes: 26 additions & 26 deletions
52
...py/SqlQueryPlan/PostgresSqlClient/test_convert_table_data_source_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,29 +1,29 @@ | ||
-- Read Elements From Data Source 'id_verifications' | ||
SELECT | ||
1 AS identity_verifications | ||
, id_verifications_src_10003.ds | ||
, 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 | ||
, id_verifications_src_10003.ds_partitioned | ||
, 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 | ||
, id_verifications_src_10003.verification_type | ||
, id_verifications_src_10003.ds AS verification__ds | ||
, 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 | ||
, id_verifications_src_10003.ds_partitioned AS verification__ds_partitioned | ||
, 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 | ||
, 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 | ||
, id_verifications_src_10004.ds | ||
, 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 | ||
, id_verifications_src_10004.ds_partitioned | ||
, 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 | ||
, id_verifications_src_10004.verification_type | ||
, id_verifications_src_10004.ds AS verification__ds | ||
, 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 | ||
, id_verifications_src_10004.ds_partitioned AS verification__ds_partitioned | ||
, 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 | ||
, 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 |
28 changes: 14 additions & 14 deletions
28
...SqlQueryPlan/PostgresSqlClient/test_convert_table_data_source_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,16 +1,16 @@ | ||
-- Read Elements From Data Source 'users_latest' | ||
SELECT | ||
users_latest_src_10008.ds | ||
, DATE_TRUNC('week', users_latest_src_10008.ds) AS ds__week | ||
, DATE_TRUNC('month', users_latest_src_10008.ds) AS ds__month | ||
, DATE_TRUNC('quarter', users_latest_src_10008.ds) AS ds__quarter | ||
, DATE_TRUNC('year', users_latest_src_10008.ds) AS ds__year | ||
, users_latest_src_10008.home_state_latest | ||
, users_latest_src_10008.ds AS user__ds | ||
, DATE_TRUNC('week', users_latest_src_10008.ds) AS user__ds__week | ||
, DATE_TRUNC('month', users_latest_src_10008.ds) AS user__ds__month | ||
, DATE_TRUNC('quarter', users_latest_src_10008.ds) AS user__ds__quarter | ||
, DATE_TRUNC('year', users_latest_src_10008.ds) AS user__ds__year | ||
, 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 | ||
users_latest_src_10009.ds | ||
, DATE_TRUNC('week', users_latest_src_10009.ds) AS ds__week | ||
, DATE_TRUNC('month', users_latest_src_10009.ds) AS ds__month | ||
, DATE_TRUNC('quarter', users_latest_src_10009.ds) AS ds__quarter | ||
, DATE_TRUNC('year', users_latest_src_10009.ds) AS ds__year | ||
, users_latest_src_10009.home_state_latest | ||
, users_latest_src_10009.ds AS user__ds | ||
, DATE_TRUNC('week', users_latest_src_10009.ds) AS user__ds__week | ||
, DATE_TRUNC('month', users_latest_src_10009.ds) AS user__ds__month | ||
, DATE_TRUNC('quarter', users_latest_src_10009.ds) AS user__ds__quarter | ||
, DATE_TRUNC('year', users_latest_src_10009.ds) AS user__ds__year | ||
, 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 |
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
Oops, something went wrong.