• Sergei Petrunia's avatar
    MDEV-9925: Wrong result with aggregate function as a window function · a81e711a
    Sergei Petrunia authored
    Make Frame_range_current_row_bottom to take into account partition bounds.
    
    Other partition bounds that could potentially hit the end of partition are
    Frame_range_n_bottom, Frame_n_rows_following, Frame_unbounded_following,
    and they all had end-of-partition protection.
    
    To simplify the code, factored out end-of-partition checks into
    class Partition_read_cursor.
    a81e711a
sql_window.cc 56.7 KB