-
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
Showing
24 changed files
with
1,214 additions
and
812 deletions.
There are no files selected for viewing
48 changes: 24 additions & 24 deletions
48
...el.py/SqlQueryPlan/BigQuery/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,30 +1,30 @@ | ||
-- Read Elements From Semantic Model 'users_latest' | ||
SELECT | ||
users_latest_src_10008.ds AS ds__day | ||
, DATE_TRUNC(users_latest_src_10008.ds, isoweek) AS ds__week | ||
, DATE_TRUNC(users_latest_src_10008.ds, month) AS ds__month | ||
, DATE_TRUNC(users_latest_src_10008.ds, quarter) AS ds__quarter | ||
, DATE_TRUNC(users_latest_src_10008.ds, year) AS ds__year | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS ds__extract_month | ||
, EXTRACT(isoweek FROM users_latest_src_10008.ds) AS ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds__extract_day | ||
, EXTRACT(dayofweek FROM users_latest_src_10008.ds) AS ds__extract_dow | ||
, EXTRACT(dayofyear FROM users_latest_src_10008.ds) AS ds__extract_doy | ||
users_latest_src_10008.ds AS ds_latest__day | ||
, DATE_TRUNC(users_latest_src_10008.ds, isoweek) AS ds_latest__week | ||
, DATE_TRUNC(users_latest_src_10008.ds, month) AS ds_latest__month | ||
, DATE_TRUNC(users_latest_src_10008.ds, quarter) AS ds_latest__quarter | ||
, DATE_TRUNC(users_latest_src_10008.ds, year) 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(isoweek FROM users_latest_src_10008.ds) AS ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day | ||
, EXTRACT(dayofweek FROM users_latest_src_10008.ds) AS ds_latest__extract_dow | ||
, EXTRACT(dayofyear FROM users_latest_src_10008.ds) AS ds_latest__extract_doy | ||
, users_latest_src_10008.home_state_latest | ||
, users_latest_src_10008.ds AS user__ds__day | ||
, DATE_TRUNC(users_latest_src_10008.ds, isoweek) AS user__ds__week | ||
, DATE_TRUNC(users_latest_src_10008.ds, month) AS user__ds__month | ||
, DATE_TRUNC(users_latest_src_10008.ds, quarter) AS user__ds__quarter | ||
, DATE_TRUNC(users_latest_src_10008.ds, year) AS user__ds__year | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS user__ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds__extract_month | ||
, EXTRACT(isoweek FROM users_latest_src_10008.ds) AS user__ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds__extract_day | ||
, EXTRACT(dayofweek FROM users_latest_src_10008.ds) AS user__ds__extract_dow | ||
, EXTRACT(dayofyear FROM users_latest_src_10008.ds) AS user__ds__extract_doy | ||
, users_latest_src_10008.ds AS user__ds_latest__day | ||
, DATE_TRUNC(users_latest_src_10008.ds, isoweek) AS user__ds_latest__week | ||
, DATE_TRUNC(users_latest_src_10008.ds, month) AS user__ds_latest__month | ||
, DATE_TRUNC(users_latest_src_10008.ds, quarter) AS user__ds_latest__quarter | ||
, DATE_TRUNC(users_latest_src_10008.ds, year) 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(isoweek FROM users_latest_src_10008.ds) AS user__ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day | ||
, EXTRACT(dayofweek FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow | ||
, EXTRACT(dayofyear 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 |
48 changes: 24 additions & 24 deletions
48
....py/SqlQueryPlan/Databricks/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,30 +1,30 @@ | ||
-- Read Elements From Semantic Model 'users_latest' | ||
SELECT | ||
users_latest_src_10008.ds AS ds__day | ||
, 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 | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS ds__extract_month | ||
, EXTRACT(week FROM users_latest_src_10008.ds) AS ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds__extract_day | ||
, EXTRACT(dow FROM users_latest_src_10008.ds) AS ds__extract_dow | ||
, EXTRACT(doy FROM users_latest_src_10008.ds) AS ds__extract_doy | ||
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(week FROM users_latest_src_10008.ds) AS ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day | ||
, EXTRACT(dow 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 | ||
, users_latest_src_10008.ds AS user__ds__day | ||
, 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 | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS user__ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds__extract_month | ||
, EXTRACT(week FROM users_latest_src_10008.ds) AS user__ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds__extract_day | ||
, EXTRACT(dow FROM users_latest_src_10008.ds) AS user__ds__extract_dow | ||
, EXTRACT(doy FROM users_latest_src_10008.ds) AS user__ds__extract_doy | ||
, 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(week FROM users_latest_src_10008.ds) AS user__ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day | ||
, EXTRACT(dow 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 |
48 changes: 24 additions & 24 deletions
48
...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,30 +1,30 @@ | ||
-- Read Elements From Semantic Model 'users_latest' | ||
SELECT | ||
users_latest_src_10008.ds AS ds__day | ||
, 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 | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS ds__extract_month | ||
, EXTRACT(week FROM users_latest_src_10008.ds) AS ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds__extract_day | ||
, EXTRACT(dow FROM users_latest_src_10008.ds) AS ds__extract_dow | ||
, EXTRACT(doy FROM users_latest_src_10008.ds) AS ds__extract_doy | ||
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(week FROM users_latest_src_10008.ds) AS ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day | ||
, EXTRACT(dow 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 | ||
, users_latest_src_10008.ds AS user__ds__day | ||
, 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 | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS user__ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds__extract_month | ||
, EXTRACT(week FROM users_latest_src_10008.ds) AS user__ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds__extract_day | ||
, EXTRACT(dow FROM users_latest_src_10008.ds) AS user__ds__extract_dow | ||
, EXTRACT(doy FROM users_latest_src_10008.ds) AS user__ds__extract_doy | ||
, 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(week FROM users_latest_src_10008.ds) AS user__ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day | ||
, EXTRACT(dow 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 |
48 changes: 24 additions & 24 deletions
48
...el.py/SqlQueryPlan/Postgres/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,30 +1,30 @@ | ||
-- Read Elements From Semantic Model 'users_latest' | ||
SELECT | ||
users_latest_src_10008.ds AS ds__day | ||
, 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 | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS ds__extract_month | ||
, EXTRACT(week FROM users_latest_src_10008.ds) AS ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds__extract_day | ||
, EXTRACT(dow FROM users_latest_src_10008.ds) AS ds__extract_dow | ||
, EXTRACT(doy FROM users_latest_src_10008.ds) AS ds__extract_doy | ||
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(week FROM users_latest_src_10008.ds) AS ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day | ||
, EXTRACT(dow 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 | ||
, users_latest_src_10008.ds AS user__ds__day | ||
, 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 | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS user__ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds__extract_month | ||
, EXTRACT(week FROM users_latest_src_10008.ds) AS user__ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds__extract_day | ||
, EXTRACT(dow FROM users_latest_src_10008.ds) AS user__ds__extract_dow | ||
, EXTRACT(doy FROM users_latest_src_10008.ds) AS user__ds__extract_doy | ||
, 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(week FROM users_latest_src_10008.ds) AS user__ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day | ||
, EXTRACT(dow 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 |
48 changes: 24 additions & 24 deletions
48
...el.py/SqlQueryPlan/Redshift/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,30 +1,30 @@ | ||
-- Read Elements From Semantic Model 'users_latest' | ||
SELECT | ||
users_latest_src_10008.ds AS ds__day | ||
, 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 | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS ds__extract_month | ||
, EXTRACT(week FROM users_latest_src_10008.ds) AS ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds__extract_day | ||
, EXTRACT(dow FROM users_latest_src_10008.ds) AS ds__extract_dow | ||
, EXTRACT(doy FROM users_latest_src_10008.ds) AS ds__extract_doy | ||
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(week FROM users_latest_src_10008.ds) AS ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day | ||
, EXTRACT(dow 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 | ||
, users_latest_src_10008.ds AS user__ds__day | ||
, 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 | ||
, EXTRACT(year FROM users_latest_src_10008.ds) AS user__ds__extract_year | ||
, EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds__extract_quarter | ||
, EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds__extract_month | ||
, EXTRACT(week FROM users_latest_src_10008.ds) AS user__ds__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds__extract_day | ||
, EXTRACT(dow FROM users_latest_src_10008.ds) AS user__ds__extract_dow | ||
, EXTRACT(doy FROM users_latest_src_10008.ds) AS user__ds__extract_doy | ||
, 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(week FROM users_latest_src_10008.ds) AS user__ds_latest__extract_week | ||
, EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day | ||
, EXTRACT(dow 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 |
Oops, something went wrong.