Taragolis commented on code in PR #32883:
URL: https://github.com/apache/airflow/pull/32883#discussion_r1299817038
##########
airflow/datasets/manager.py:
##########
@@ -52,7 +52,7 @@ def register_dataset_change(
For local datasets, look them up, record the dataset event, queue
dagruns, and broadcast
the dataset event
"""
- dataset_model = session.query(DatasetModel).filter(DatasetModel.uri ==
dataset.uri).one_or_none()
+ dataset_model =
session.scalar(select(DatasetModel).where(DatasetModel.uri == dataset.uri))
Review Comment:
```suggestion
dataset_model = session.execute(
select(DatasetModel).where(DatasetModel.uri == dataset.uri)
).scalar_one_or_none()
```
--
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]