• Marko Mäkelä's avatar
    MDEV-20531: innodb.temporary_table_optimisation fails · 7591a24f
    Marko Mäkelä authored
    Try to use more deterministic floating-point operations.
    Apparently, 2.2 > 2.2 wrongly holds on many platforms, but
    not ppc64le on the compiler used on Red Had Enterprise Linux 8.
    The reason could be an infinite binary presentation:
    2.2 = 0b10.001100110011…
    
    With t1_f = 2.5 = 0b10.1, t1_f > 2.5 would no longer hold on AMD64.
    Let us replace the 2.2 with 2.5 and compare t1_f >= 2.5 in order to
    get more consistent results across all platforms.
    7591a24f
temporary_table_optimization.test 6.5 KB