bugraoz93 commented on code in PR #58353:
URL: https://github.com/apache/airflow/pull/58353#discussion_r2532307890
##########
airflow-core/src/airflow/api_fastapi/common/db/dag_runs.py:
##########
@@ -34,8 +34,8 @@
select(
DagRun.dag_id,
DagRun.state,
- DagModel.dag_display_name,
- cast("ColumnElement[int]", func.count(DagRun.state).label("count")),
+ cast("ColumnElement", DagModel.dag_display_name),
Review Comment:
I saw we were doing this casting to have an int while now it seems we are
parsing dag_display_name while count is not. I understand that changing the
approach may make the cast not needed but I haven't fully grasped why it moved
without a primitive type because I assume we may not even need it if we are not
specifically casting to a primitive
--
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]