Repository navigation
Conversation
…ting orphaned datasets
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
| """ | ||
| orphaned_dataset_query = session.scalars( | ||
| select(DatasetModel) | ||
| select(DatasetModel.id) |
There was a problem hiding this comment.
I don’t think this is right? We use scalars here so orphaned_dataset_query would be a list of ints (ids) but we use the results as dataset objects below.
There was a problem hiding this comment.
Maybe we should also turn this into an UPDATE if possible
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
Fixes: #40349
Issue 40349 - Simple fix for Airflow scheduler crashes with a psycopg2.errors.GroupingError due to an incorrect SQL query when detecting orphaned datasets