• unknown's avatar
    Fix LP BUG#680058 · 0574bc89
    unknown authored
      
    Analysis:
    The send_data method of the result sink class used to collect
    data statistics about materialized subqueries incorrectly assumed
    that duplicate rows are removed prior to calling send_data. As
    a result the collected statistics was wrong, which resulted in
    an incorrect maximal number of keys in the Ordered_key buffer.
      
    Solution:
    Try to insert each row into the materialized temp table before
    collecting statistics, and if the insertion results in a duplicate
    row, do not count the current row.
    0574bc89
sql_class.cc 118 KB