You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should not be any manual step when deploying to a new environment.
Therefor it should be possible to create the big query views (timesheets_view and projects_view), that have been created using the bigquery UI, from code.
with ranked as (
SELECTr.Id, r.timeTime, r.project p1, r.userid, r.task t1, r.modified, r.description Description, r.dateDate, r.deleted, r.client, r.divisionId, row_number() over (partition by r.idorder byr.modifieddesc) rank
FROM`PROJECT.timesheets.registrations` r
wherer.date<current_timestamp()
)
selectr.Time, p.name Project, r.Description, r.dateDate, u.name User, t.name Task, c.name Client, st.subteam Subteam, st.scrumteam Scrumteam, st.email Email, r.divisionId division from ranked r
left outer join`PROJECT.timesheets.projects_view` p
onr.p1=p.idleft outer join`PROJECT.timesheets.users_view` u
onr.userid=u.idleft outer join`PROJECT.timesheets.tasks` t
onr.t1=t.__key__.name
left outer join`PROJECT.timesheets.SubteamUser` st
onst.id=u.idleft outer join`PROJECT.timesheets.clients` c
onc.__key__.name =r.clientwherer.rank=1and (r.divisionId is nullorr.divisionId="")
andr.timeis not nulland (r.deleted is nullorr.deleted= false)
There should not be any manual step when deploying to a new environment.
Therefor it should be possible to create the big query views (timesheets_view and projects_view), that have been created using the bigquery UI, from code.
Documentation: https://cloud.google.com/bigquery/docs/views
"Call the tables.insert method with a table resource that contains a view property."
The text was updated successfully, but these errors were encountered: