• Yuchen Pei's avatar
    MDEV-22534 Decorrelate IN subquery · f393ecea
    Yuchen Pei authored
    Transform
    
    in (select inner_col' from inner_table where inner_col = outer_col)
    
    to
    
    , outer_col in (select inner_col', inner_col from inner_table)
    
    Achieved by implementing Item_in_subselect::exists2in_processor(),
    accompanied with comprehensive test coverage. Factored out common code
    between the two transformations.
    
    Caveat:
    
    - Cannot recognise bad item mismatch in equalities that causes
      materialization to not materialize down the road
    f393ecea
update_use_source.result 219 KB