• Varun Gupta's avatar
    MDEV-14791: Crash with order by expression containing window functions · a6ea7996
    Varun Gupta authored
    The issue here is that for a window function in the ORDER BY clause, we were not
    creating an extra field in the temporary table for the window function
    (which is contained in an expression).
    So a call to split_sum_func is added to handle this case
    
    Also we need to update all items that contain a window function
    in the temp table during window function computation as filesort would need
    these values to be updated to calculate the ORDER BY clause of the select.
    a6ea7996
win.result 75.8 KB