uranusjr commented on code in PR #58062:
URL: https://github.com/apache/airflow/pull/58062#discussion_r2532284101
##########
airflow-core/src/airflow/models/serialized_dag.py:
##########
@@ -605,6 +605,18 @@ def get(cls, dag_id: str, session: Session = NEW_SESSION)
-> SerializedDagModel
"""
return session.scalar(cls.latest_item_select_object(dag_id))
+ @classmethod
+ def _process_dag_dependencies_query(
+ cls, query, load_json: Callable[[bytes | str], list] | None
+ ) -> Iterator[tuple[str, list]]:
+ """Process query results for DAG dependencies, yielding (dag_id,
dependencies) tuples."""
+ if load_json is not None:
+ for dag_id, deps_data in query:
+ yield (str(dag_id), load_json(deps_data))
+ else:
+ for dag_id, deps_data in query:
+ yield (str(dag_id), deps_data if deps_data else [])
Review Comment:
```suggestion
yield str(dag_id), deps_data or []
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]