jason810496 opened a new pull request, #72856: URL: https://github.com/apache/airflow/pull/72856
Follow-up to https://github.com/apache/airflow/pull/72699. Introduce prek hook to guard the explicit statement-level `.limit(1)` before `.first()` in core source files. The AST check follows straight-line local assignments and rejects bounds applied only to subqueries, removed before execution, or added after execution. Also bound the remaining operator-link XCom lookup and express the public XCom lookup's existing bound as an explicit `.limit(1)` call. --- ##### Was generative AI tooling used to co-author this PR? - [x] Yes, with help of Codex following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) Generated-by: Codex -- 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]
