hussein-awala opened a new pull request, #77671:
URL: https://github.com/apache/airflow/pull/77671

   The "Window direction" section of the asset docs says that direction applies 
to rollup windows, so `DayWindow(direction=Window.Direction.BACKWARD)` would 
hold the downstream Dag run until the 24 hours before midnight arrive. That 
rollup never fires:
   
   - `RollupMapper.to_downstream` delegates to the upstream mapper, which 
routes each key to the period that contains it.
   - A BACKWARD window expects `(previous period start, period start]`. For 
`2024-03-13` that is `2024-03-12T01:00:00` … `2024-03-13T00:00:00`. Only the 
anchor key reaches the pending run that expects it, so `WaitForAll()` is never 
satisfied.
   
   This happens for every temporal window (Hour, Day, Week, Month, Quarter, 
Year). `direction` was added for `FanOutMapper` (#67475), and fan-out behaves 
as documented.
   
   This PR replaces the claim with a note that only `FanOutMapper` honors 
`direction`. Making rollups honor it needs a decision on which keys a BACKWARD 
rollup should wait for. That is tracked in #77669.
   
   related: #77669
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: Claude Code (Opus 5.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
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]

Reply via email to