Test only for approximate equality in arithmetic_expression_constant_folding.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The test arithmetic_expression_constant_folding.js generates a set of random floating point numbers and multiplies them together using both unoptimized and optimized (constant-folded) versions of the same query. Currently it asserts that the two results must be identical, but due to precision limitations they can differ by an infinitesimal amount, e.g. from pre-computing partial results at constant folding time versus multiplying strictly left-to-right in the unoptimized case.

      Instead this needs to test for approximate equality to avoid false failures.

            Assignee:
            Kevin Cherkauer (Inactive)
            Reporter:
            Kevin Cherkauer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: