Skip to content

Commit

Permalink
Update cluster number logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-whitestone committed Oct 31, 2023
1 parent 530e1d9 commit e9891cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/warehouse_cluster_status.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ warehouse_cluster_status_base as (
select
warehouse_id,
warehouse_name,
cluster_number + 1 as cluster_number,
cluster_number,
timestamp as valid_from,
lead(timestamp) over (partition by warehouse_id, cluster_number order by timestamp asc) as valid_to,
event_name = 'RESUME_CLUSTER' as is_active
Expand Down

0 comments on commit e9891cb

Please sign in to comment.