Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Logical Optimizer
    • None

    Description

      If an EXISTS/NOT EXISTS subquery contains an aggregate (with no group by or windowing) it is guaranteed to produce at least one row. Since such subquery in WHERE clause tests for existence of row it could be replaced by true during compile time.

      Attachments

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              vgarg Vineet Garg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: