Rename end/start to end_date/start_date for performance_cycle
This commit is contained in:
@@ -5,15 +5,22 @@
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
with distinct_cycles as (
|
with distinct_cycles as (
|
||||||
select distinct task_name, task_status
|
select
|
||||||
|
task_name,
|
||||||
|
case
|
||||||
|
when count(case when task_status != 'Completed' then 1 end) = 0
|
||||||
|
then 'Closed'
|
||||||
|
else 'Open'
|
||||||
|
end as task_status
|
||||||
from {{ source('tap_spreadsheets_anywhere', 'performance_review_steps') }}
|
from {{ source('tap_spreadsheets_anywhere', 'performance_review_steps') }}
|
||||||
--where is_not_removed_from_task = 1
|
--where is_not_removed_from_task = 1
|
||||||
|
group by task_name
|
||||||
)
|
)
|
||||||
|
|
||||||
select
|
select
|
||||||
dense_rank() over (order by task_name)::bigint as id,
|
dense_rank() over (order by task_name)::bigint as id,
|
||||||
null::date as start,
|
null::date as start_date,
|
||||||
null::date as "end",
|
null::date as end_date,
|
||||||
task_name as name,
|
task_name as name,
|
||||||
task_status as status,
|
task_status as status,
|
||||||
task_name as type
|
task_name as type
|
||||||
|
|||||||
Reference in New Issue
Block a user