Skip to content

Commit

Permalink
Merge pull request #51 from nbandre/main
Browse files Browse the repository at this point in the history
Fix for null run times
  • Loading branch information
alanmcruickshank authored Nov 29, 2021
2 parents 27d81ab + 337fbfc commit 1bdfaa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/fct_dbt__critical_path.sql
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ search_path (node_ids, total_time) as (
union all
select
array_cat(to_array(all_needed_dependencies.depends_on_node_id), search_path.node_ids) as node_ids,
all_needed_dependencies.total_node_runtime + search_path.total_time
coalesce(all_needed_dependencies.total_node_runtime, 0) + search_path.total_time
from search_path
left join all_needed_dependencies
where get(search_path.node_ids, 0) = all_needed_dependencies.node_id
Expand Down

0 comments on commit 1bdfaa5

Please sign in to comment.