Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fix: Rename primary entity to one that doesn't exist already #981

Merged
merged 2 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ semantic_model:
type_params:
time_granularity: day

primary_entity: company
primary_entity: revenue_instance

entities:
- name: user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ SELECT
, EXTRACT(day FROM revenue_src_10007.created_at) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM revenue_src_10007.created_at) = 1, 7, EXTRACT(dayofweek FROM revenue_src_10007.created_at) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM revenue_src_10007.created_at) AS ds__extract_doy
, DATE_TRUNC(revenue_src_10007.created_at, day) AS company__ds__day
, DATE_TRUNC(revenue_src_10007.created_at, isoweek) AS company__ds__week
, DATE_TRUNC(revenue_src_10007.created_at, month) AS company__ds__month
, DATE_TRUNC(revenue_src_10007.created_at, quarter) AS company__ds__quarter
, DATE_TRUNC(revenue_src_10007.created_at, year) 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
, IF(EXTRACT(dayofweek FROM revenue_src_10007.created_at) = 1, 7, EXTRACT(dayofweek FROM revenue_src_10007.created_at) - 1) AS company__ds__extract_dow
, EXTRACT(dayofyear FROM revenue_src_10007.created_at) AS company__ds__extract_doy
, DATE_TRUNC(revenue_src_10007.created_at, day) AS revenue_instance__ds__day
, DATE_TRUNC(revenue_src_10007.created_at, isoweek) AS revenue_instance__ds__week
, DATE_TRUNC(revenue_src_10007.created_at, month) AS revenue_instance__ds__month
, DATE_TRUNC(revenue_src_10007.created_at, quarter) AS revenue_instance__ds__quarter
, DATE_TRUNC(revenue_src_10007.created_at, year) AS revenue_instance__ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_day
, IF(EXTRACT(dayofweek FROM revenue_src_10007.created_at) = 1, 7, EXTRACT(dayofweek FROM revenue_src_10007.created_at) - 1) AS revenue_instance__ds__extract_dow
, EXTRACT(dayofyear FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_doy
, revenue_src_10007.user_id AS user
, revenue_src_10007.user_id AS company__user
, revenue_src_10007.user_id AS revenue_instance__user
FROM ***************************.fct_revenue revenue_src_10007
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ SELECT
, EXTRACT(day FROM revenue_src_10007.created_at) AS ds__extract_day
, EXTRACT(DAYOFWEEK_ISO 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(DAYOFWEEK_ISO FROM revenue_src_10007.created_at) AS company__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS company__ds__extract_doy
, DATE_TRUNC('day', revenue_src_10007.created_at) AS revenue_instance__ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS revenue_instance__ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS revenue_instance__ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS revenue_instance__ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS revenue_instance__ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_day
, EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_doy
, revenue_src_10007.user_id AS user
, revenue_src_10007.user_id AS company__user
, revenue_src_10007.user_id AS revenue_instance__user
FROM ***************************.fct_revenue revenue_src_10007
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ SELECT
, 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
, DATE_TRUNC('day', revenue_src_10007.created_at) AS revenue_instance__ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS revenue_instance__ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS revenue_instance__ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS revenue_instance__ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS revenue_instance__ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_day
, EXTRACT(isodow FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_doy
, revenue_src_10007.user_id AS user
, revenue_src_10007.user_id AS company__user
, revenue_src_10007.user_id AS revenue_instance__user
FROM ***************************.fct_revenue revenue_src_10007
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ SELECT
, 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
, DATE_TRUNC('day', revenue_src_10007.created_at) AS revenue_instance__ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS revenue_instance__ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS revenue_instance__ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS revenue_instance__ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS revenue_instance__ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_day
, EXTRACT(isodow FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_doy
, revenue_src_10007.user_id AS user
, revenue_src_10007.user_id AS company__user
, revenue_src_10007.user_id AS revenue_instance__user
FROM ***************************.fct_revenue revenue_src_10007
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ SELECT
, EXTRACT(day FROM revenue_src_10007.created_at) AS ds__extract_day
, CASE WHEN EXTRACT(dow FROM revenue_src_10007.created_at) = 0 THEN EXTRACT(dow FROM revenue_src_10007.created_at) + 7 ELSE EXTRACT(dow FROM revenue_src_10007.created_at) END 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
, CASE WHEN EXTRACT(dow FROM revenue_src_10007.created_at) = 0 THEN EXTRACT(dow FROM revenue_src_10007.created_at) + 7 ELSE EXTRACT(dow FROM revenue_src_10007.created_at) END AS company__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS company__ds__extract_doy
, DATE_TRUNC('day', revenue_src_10007.created_at) AS revenue_instance__ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS revenue_instance__ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS revenue_instance__ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS revenue_instance__ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS revenue_instance__ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_day
, CASE WHEN EXTRACT(dow FROM revenue_src_10007.created_at) = 0 THEN EXTRACT(dow FROM revenue_src_10007.created_at) + 7 ELSE EXTRACT(dow FROM revenue_src_10007.created_at) END AS revenue_instance__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_doy
, revenue_src_10007.user_id AS user
, revenue_src_10007.user_id AS company__user
, revenue_src_10007.user_id AS revenue_instance__user
FROM ***************************.fct_revenue revenue_src_10007
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ SELECT
, EXTRACT(day FROM revenue_src_10007.created_at) AS ds__extract_day
, EXTRACT(dayofweekiso 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(dayofweekiso FROM revenue_src_10007.created_at) AS company__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS company__ds__extract_doy
, DATE_TRUNC('day', revenue_src_10007.created_at) AS revenue_instance__ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS revenue_instance__ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS revenue_instance__ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS revenue_instance__ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS revenue_instance__ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_day
, EXTRACT(dayofweekiso FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_doy
, revenue_src_10007.user_id AS user
, revenue_src_10007.user_id AS company__user
, revenue_src_10007.user_id AS revenue_instance__user
FROM ***************************.fct_revenue revenue_src_10007
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ SELECT
, EXTRACT(day FROM revenue_src_10007.created_at) AS ds__extract_day
, EXTRACT(DAY_OF_WEEK 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(DAY_OF_WEEK FROM revenue_src_10007.created_at) AS company__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS company__ds__extract_doy
, DATE_TRUNC('day', revenue_src_10007.created_at) AS revenue_instance__ds__day
, DATE_TRUNC('week', revenue_src_10007.created_at) AS revenue_instance__ds__week
, DATE_TRUNC('month', revenue_src_10007.created_at) AS revenue_instance__ds__month
, DATE_TRUNC('quarter', revenue_src_10007.created_at) AS revenue_instance__ds__quarter
, DATE_TRUNC('year', revenue_src_10007.created_at) AS revenue_instance__ds__year
, EXTRACT(year FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_year
, EXTRACT(quarter FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_quarter
, EXTRACT(month FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_month
, EXTRACT(day FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_day
, EXTRACT(DAY_OF_WEEK FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_dow
, EXTRACT(doy FROM revenue_src_10007.created_at) AS revenue_instance__ds__extract_doy
, revenue_src_10007.user_id AS user
, revenue_src_10007.user_id AS company__user
, revenue_src_10007.user_id AS revenue_instance__user
FROM ***************************.fct_revenue revenue_src_10007
Loading