Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDee committed Dec 8, 2022
1 parent 5a68744 commit 60d34a7
Show file tree
Hide file tree
Showing 130 changed files with 5,146 additions and 4,404 deletions.
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
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
<!-- node_id = rss_10011 -->
<!-- node_id = rss_10013 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
</ReadSqlSourceNode>
Expand All @@ -93,12 +93,12 @@
<!-- 'identifier_links': ()} -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10004 -->
<!-- node_id = sma_10005 -->
<!-- aggregation_time_dimension = ds -->
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
<!-- node_id = rss_10014 -->
<!-- node_id = rss_10017 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
</ReadSqlSourceNode>
Expand Down Expand Up @@ -175,7 +175,7 @@
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
<!-- node_id = rss_10011 -->
<!-- node_id = rss_10013 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
</ReadSqlSourceNode>
Expand All @@ -196,12 +196,12 @@
<!-- 'identifier_links': ()} -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10004 -->
<!-- node_id = sma_10005 -->
<!-- aggregation_time_dimension = ds -->
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
<!-- node_id = rss_10014 -->
<!-- node_id = rss_10017 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
</ReadSqlSourceNode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
<!-- 'time_granularity': TimeGranularity.MONTH} -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10005 -->
<!-- node_id = sma_10006 -->
<!-- aggregation_time_dimension = ds -->
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='revenue')) -->
<!-- node_id = rss_10016 -->
<!-- node_id = rss_10019 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='revenue')) -->
</ReadSqlSourceNode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
<!-- node_id = rss_10011 -->
<!-- node_id = rss_10013 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
</ReadSqlSourceNode>
Expand All @@ -104,12 +104,12 @@
<!-- 'identifier_links': ()} -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10004 -->
<!-- node_id = sma_10005 -->
<!-- aggregation_time_dimension = ds -->
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
<!-- node_id = rss_10014 -->
<!-- node_id = rss_10017 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
</ReadSqlSourceNode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
<!-- node_id = rss_10011 -->
<!-- node_id = rss_10013 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
</ReadSqlSourceNode>
Expand All @@ -90,12 +90,12 @@
<!-- 'identifier_links': ()} -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10004 -->
<!-- node_id = sma_10005 -->
<!-- aggregation_time_dimension = ds -->
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
<!-- node_id = rss_10014 -->
<!-- node_id = rss_10017 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
</ReadSqlSourceNode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
<!-- node_id = rss_10011 -->
<!-- node_id = rss_10013 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
</ReadSqlSourceNode>
Expand All @@ -84,12 +84,12 @@
<!-- 'identifier_links': ()} -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10004 -->
<!-- node_id = sma_10005 -->
<!-- aggregation_time_dimension = ds -->
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
<!-- node_id = rss_10014 -->
<!-- node_id = rss_10017 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='listings_latest')) -->
</ReadSqlSourceNode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
<!-- node_id = rss_10011 -->
<!-- node_id = rss_10013 -->
<!-- data_set = -->
<!-- DataSourceDataSet(DataSourceReference(data_source_name='bookings_source')) -->
</ReadSqlSourceNode>
Expand Down
Loading

0 comments on commit 60d34a7

Please sign in to comment.