Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-1411

Queries not rewritten correctly when aggregate expression used inside "case when..."

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7
    • cube
    • None

    Description

      Found error in rewritten query when aggregate expressions used inside "case when" statement.
      for eg :

      CASE
          WHEN (sum((db.msr1)) = 0) THEN 0
          ELSE ((sum((db.msr2)) / sum((db.msr1))) * 1000)
      END AS `expr1`
      

      Attachments

        1. LENS-1411.patch
          2 kB
          SushilMohanty

        Activity

          People

            sushilmohanty SushilMohanty
            sushilmohanty SushilMohanty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: