You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sliding window min() returns stale value when all non-NULL values leave the frame #23872
SlidingMinAccumulator reports a stale minimum when every non-NULL value has been retracted from the window but the frame is still non-empty (i.e., the frame contains only NULLs). Sliding max is correct.
To Reproduce
SELECT id, x,
MIN(x) OVER (ORDER BY id ROWS BETWEEN 1 PRECEDING AND CURRENT ROW) AS min_x
FROM (VALUES (1, 3), (2, NULL), (3, NULL)) t(id, x)
ORDER BY id;
Activity
neilconway commentedon Jul 24, 2026
take
fix: sliding window `min()` returns wrong value for all-NULL windows (a…
fix: sliding window `min()` returns wrong value for all-NULL windows (a…