Optimize $not + alwaysTrue/alwaysFalse in all contexts

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2024-06-24, QO 2024-07-08, QO 2024-07-22, QO 2024-08-05, QO 2024-08-19, QO 2024-09-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      A simple static rewrite we can always do, even in contexts where the boolean simplifier is not triggered, is optimizing $not + $alwaysTrue -> $alwaysFalse, and $not + alwaysFalse -> $alwaysTrue. This could be useful in triggering an EOF plan in some additional cases where it is safe to do so.

            Assignee:
            Sopho Kevlishvili
            Reporter:
            Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: