vatsrahul1001 opened a new pull request, #77683: URL: https://github.com/apache/airflow/pull/77683
A slice bound that falls before the first mapped XCom, such as `seq[-2:10]` or `seq[2:-10:-1]`, maps to a negative low bound once the other end is resolved against the row count. That reached the database as a negative OFFSET: SQLite treats it as zero and returns extra rows instead of what Python slicing gives, while Postgres and MySQL reject the query. Python clamps such a bound to the start of the sequence, so the query must as well. (cherry picked from commit 509124275f42abf554bb7ad194cbf6e18b44e6d1) Co-authored-by: Sahil Ray <[email protected]> --- Clean cherry-pick of the merge commit, no conflicts. **Verified locally:** `test_xcoms.py` 147 passed (baseline 144, +3 new tests); the only 2 errors are the pre-existing local `No module named 'airflow_shared'` on an unmodified `v3-4-test`. Backport of #75015. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
