• Jacob Mathew's avatar
    MDEV-16912: Spider Order By column[datatime] limit 5 returns 3 rows · 30d22569
    Jacob Mathew authored
    The problem occurs in 10.2 and earlier releases of MariaDB Server because the
    Partition Engine was not pushing the engine conditions to the underlying
    storage engine of each partition.  This caused Spider to return the first 5
    rows in the table with the data provided by the customer.  2 of the 5 rows
    did not qualify the WHERE clause, so they were removed from the result set by
    the server.
    
    To fix the problem, I have back-ported support for engine condition pushdown
    in the Partition Engine from MariaDB Server 10.3 to 10.2 and 10.1.  In 10.3
    and 10.4 I have merged the comments and the test case.
    
    Author:
      Jacob Mathew.
    
    Reviewer:
      Kentoku Shiba.
    
    Cherry-Picked:
      Commit ed49f9aa on branch 10.3
    30d22569
ha_partition.cc 348 KB