• Sergei Petrunia's avatar
    MDEV-17785: Window functions not working in ONLY_FULL_GROUP_BY mode · 5c89386f
    Sergei Petrunia authored
    (Backport Varun Gupta's patch + edit the commit comment)
    
    Name resolution code produced errors for valid queries with window
    functions (but not for queries which used aggregate functions as
    window functions).
    
    Name resolution code worked incorrectly, because window function
    objects had is_window_func_sum_expr()=false. This was so, because
    mark_as_window_func_sum_expr() was only called for aggregate functions
    used as window functions.
    
    The fix is to call it for any window function.
    5c89386f
win.result 90.9 KB