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
Each school year in question should include both the previous grand finals debate and the final tournament. Currently, however, the school_year is determined by
debates_in_years as (
select*,
date_sub('year', DATE'{{ var("first_school_year") }}', datum) as school_year
from debates
),
in base__debata.sql. Instead, we should look at via source("raw", "debata").soutez_id into source("raw", "soutez").rocnik and use that. (It should be a match for the school_year stat, but we should double-check that.)
Therefore, to implement, we must:
Add a CTE that extracts soutez_id, rocnik from source("raw", "soutez"), which should also be added to base/sources.yml`.
Move current school_year column to school_year_calc and keep it in the debates_in_years CTE
Rename the rocnik column from the first added CTE to school_year in debates_in_years CTE
Double-check that max(school_year) == var("current_school_year")
The text was updated successfully, but these errors were encountered:
Each school year in question should include both the previous grand finals debate and the final tournament. Currently, however, the
school_year
is determined byin
base__debata.sql
. Instead, we should look at viasource("raw", "debata").soutez_id
intosource("raw", "soutez").rocnik
and use that. (It should be a match for theschool_year
stat, but we should double-check that.)Therefore, to implement, we must:
soutez_id
,rocnik
fromsource("raw", "soutez"), which should also be added to
base/sources.yml`.school_year
column toschool_year_calc
and keep it in thedebates_in_years
CTErocnik
column from the first added CTE toschool_year
indebates_in_years
CTEmax(school_year) == var("current_school_year")
The text was updated successfully, but these errors were encountered: