• unknown's avatar
    MWL#89: Cost-based choice between Materialization and IN->EXISTS transformation · 78ddd9ff
    unknown authored
    Step1 in the separation of the creation of IN->EXISTS equi-join conditions from
    their injection. The goal of this separation is to make it possible that the
    IN->EXISTS conditions can be used for cost estimation without actually modifying
    the subquery.
    
    This patch separates single_value_in_to_exists_transformer() into two methods:
    - create_single_value_in_to_exists_cond(), and
    - inject_single_value_in_to_exists_cond()
    The patch performs minimal refactoring of the code so that it is easier to solve
    problems resulting from the separation. There is a lot to be simplified in this
    code, but this will be done separately.
    78ddd9ff
item_subselect.h 39.7 KB