Subham-KRLX opened a new pull request, #60222: URL: https://github.com/apache/airflow/pull/60222
Manual backport of #59973 to v3-1-test related: #59965 related: #60208 This is a manual backport of the fix for [Log](cci:2://file:///Users/subhamsangwan/airflow/airflow-core/src/airflow/models/log.py:34:0-117:106) and `TaskInstance` join query to the `v3-1-test` branch. **Reason for manual backport:** The automated backport (#60208) failed CI because the `v3-1-test` branch operates in an environment that does not fully support the SQLAlchemy 2.0 `Mapped[...]` type hints used in the `main` branch fix. **Changes in this PR:** - Applied the logic fix from #59973 (strict join on `dag_id`, [task_id](cci:1://file:///Users/subhamsangwan/airflow/airflow-core/src/airflow/models/dagrun.py:2101:4-2103:60), [run_id](cci:1://file:///Users/subhamsangwan/airflow/airflow-core/src/airflow/models/dagrun.py:737:4-751:108), [map_index](cci:1://file:///Users/subhamsangwan/airflow/airflow-core/src/airflow/models/dagrun.py:1912:4-1966:20)). - Removed `Mapped` type hints from [airflow/models/log.py](cci:7://file:///Users/subhamsangwan/airflow/airflow-core/src/airflow/models/log.py:0:0-0:0) to ensure compatibility with the `v3-1-test` branch dependencies (restoring `relationship()` to its standard untyped usage). - Flattened the `primaryjoin` string to avoid Ruff formatting conflicts. -- 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]
