• Igor Babaev's avatar
    MDEV-16104 Server crash in JOIN::fix_all_splittings_in_plan · fc0f5adb
    Igor Babaev authored
    upon select with view and subqueries
    
    This bug occurred when a splittable materialized derived/view
    were used inside another splittable materialized derived/view.
    The bug happened because the function JOIN::fix_all_splittings_in_plan()
    was called at the very beginning of the optimization phase 2 at
    the moment when the plan structure of the embedding derived/view
    were not valid. The proper position for this call is the very
    end of the optimization phase 1.
    fc0f5adb
derived_cond_pushdown.test 80.6 KB