anshuksi282-ksolves commented on PR #56422:
URL: https://github.com/apache/airflow/pull/56422#issuecomment-3438123593
Hi @ephraimbuddy,
Thanks for the approval!
I see the CI tests are failing with the `error: AttributeError:
'ScalarResult' object has no attribute 'limit'.`
It looks like this is happening because the `.limit(1) `call is outside the
session.scalars() function, but it should be part of the `select()` statement
itself.
Should I go ahead and fix this by moving` .limit(1)` inside the `select()
`and adding `.first() `at the end?
```python
dag_version = session.scalars(
select(DagVersion)
...
.order_by(DagVersion.created_at.desc())
.limit(1)
).first()
--
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]