This is an automated email from the ASF dual-hosted git repository.

Lee-W pushed a commit to branch v3-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-4-test by this push:
     new 91d12971cdf [v3-4-test] Warn that BACKWARD windows never fire with 
RollupMapper (#77671) (#77856)
91d12971cdf is described below

commit 91d12971cdf2f636c54978e6681a39c89a4071a5
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Dec 1 08:51:54 2026 +0000

    [v3-4-test] Warn that BACKWARD windows never fire with RollupMapper 
(#77671) (#77856)
    
    The asset docs said window direction applies to rollups, so a
    RollupMapper with a BACKWARD window would wait for the trailing period.
    It never fires: rollup events are routed by the upstream mapper to the
    period that contains them, while a BACKWARD window expects mostly keys
    from the period before, so the pending Dag run is never satisfied.
    Direction was only designed for fan-out, so steer rollup users to
    FORWARD until rollup routing honors it, tracked in #77669.
    (cherry picked from commit 9f66848da542b36558a5d5219ff6971c97258ddf)
    
    Co-authored-by: Hussein Awala <[email protected]>
---
 airflow-core/docs/authoring-and-scheduling/assets.rst | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/airflow-core/docs/authoring-and-scheduling/assets.rst 
b/airflow-core/docs/authoring-and-scheduling/assets.rst
index 7c6383d8612..e258dda1090 100644
--- a/airflow-core/docs/authoring-and-scheduling/assets.rst
+++ b/airflow-core/docs/authoring-and-scheduling/assets.rst
@@ -1190,10 +1190,18 @@ which period the window enumerates relative to its 
anchor.
         ),
     )
 
-Direction applies to rollup windows too — ``RollupMapper`` uses the same window
-classes, so ``DayWindow(direction=Window.Direction.BACKWARD)`` holds a 
downstream
-run until the twenty-four hours *preceding* midnight of the downstream key have
-all arrived.
+.. Update this note once RollupMapper routing honors window direction;
+   tracked at https://github.com/apache/airflow/issues/77669
+
+.. note::
+
+    Only :class:`~airflow.sdk.FanOutMapper` honors ``direction``. Use the 
default
+    ``Window.Direction.FORWARD`` with :class:`~airflow.sdk.RollupMapper`. A 
rollup
+    sends each upstream event to the downstream partition its 
``upstream_mapper``
+    returns: the period that contains the key. A ``BACKWARD`` window expects
+    mostly keys from the period before, so those events are counted for the 
wrong
+    downstream Dag run. With the default ``WaitForAll()`` wait policy, that 
Dag run
+    never fires.
 
 Custom partition mappers, windows, and timetables in plugins
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to