Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-2500

Rewrite of case with true condition is not correct

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Critical
    • 8.4, 7.7.8
    • 6.0.0
    • Query Engine
    • None

    Description

      If a secondary searched case condition is always true, then the case will be inappropriately rewritten as just the then expression:

      case when ... when true then x else y end

      becomes just

      x

      However the prior cases should still be considered.

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            rhn-engineering-shawkins Steven Hawkins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: