• Varun Gupta's avatar
    MDEV-15853: Assertion `tab->filesort_result == 0' failed · 16319409
    Varun Gupta authored
    The issue here is that the window function execution is not called for the correct join tab, when we have GROUP BY
    where we create extra temporary tables then we need to call window function execution for the last join tab. For doing
    so the current code does not take into account the JOIN::aggr_tables.
    Fixed by introducing a new function JOIN::total_join_tab_cnt that takes in account the temporary tables also.
    16319409
sql_select.h 76.4 KB