• Yuchen Pei's avatar
    MDEV-26247 Clean up spider_fields · 2d1e09a7
    Yuchen Pei authored
    Spider gbh query rewrite should get table for fields in a simple way.
    Add a method spider_fields::find_table that searches its table holders
    to find table for a given field. This way we will be able to get rid
    of the first pass during the gbh creation where field_chains and
    field_holders are created.
    
    We also check that the field belongs to a spider table while walking
    through the query, so we could remove
    all_query_fields_are_query_table_members(). However, this requires an
    earlier creation of the table_holder so that tables are added before
    checking. We do that, and in doing so, also decouple table_holder and
    spider_fields
    
    Remove unused methods and fields. Add comments.
    2d1e09a7
spd_db_mysql.cc 525 KB