uranusjr commented on code in PR #58352:
URL: https://github.com/apache/airflow/pull/58352#discussion_r2544518255
##########
airflow-core/src/airflow/models/dagrun.py:
##########
@@ -435,6 +435,9 @@ def duration(cls, session: Session = NEW_SESSION) -> Case:
return case(when_condition, else_=None)
+ # Class-level expression for use in select statements
Review Comment:
I don’t think we can do that due to how Python works. `duration` is defined
on the class at line 413, and this line can’t be above that since the name
`duration` would not be available.
--
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]