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
In the last query of get_dag_duration_info(), why are we filtering on the basis of TaskInstance? This results in an explosion of the final result with duplicate rows.
dag_duration = get_dag_duration_info()
len(dag_duration) # 960640
set_dag_duration = set()
for dag in dag_duration:
set_dag_duration.add((dag.dag_id, dag.start_date, dag.end_date))
len(set_dag_duration) # 38
Instead, we should be adding the filter condition in dag_start_dt_query subquery and remove it from the last query.
In the last query of
get_dag_duration_info()
, why are we filtering on the basis of TaskInstance? This results in an explosion of the final result with duplicate rows.Instead, we should be adding the filter condition in
dag_start_dt_query
subquery and remove it from the last query.The text was updated successfully, but these errors were encountered: