Files
lakehouse-sarens-integration/transform/models/tap_spreadsheets_anywhere/performance_cycle.sql
2025-06-17 17:06:57 +02:00

21 lines
567 B
SQL

{{
config(
materialized='table'
)
}}
with distinct_cycles as (
select distinct task_name, task_status
from {{ source('tap_spreadsheets_anywhere', 'performance_review_steps') }}
--where is_not_removed_from_task = 1
)
select
dense_rank() over (order by task_name)::bigint as id,
null::date as start,
null::date as "end",
task_name as name,
task_status as status,
task_name as type
from distinct_cycles