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

Resolve issues with case when aggregate expressions with dim-attributes conditions

Details

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

    Description

      Right now, users write query like the following :

      select sum(case when dim1=x then msr1 else 0 end), msr2 from cube where time_range_in(...)

      And if dim1 and msr2 are not queryable, query fails saying Fields cannot be queried together.

      but the query should be accepted.

      The same works fine if the above is created as cube expression.

      Attachments

        1. LENS-1273.patch
          91 kB
          Amareshwari Sriramadasu
        2. LENS-1273.2.patch
          91 kB
          Amareshwari Sriramadasu
        3. LENS-1273.3.patch
          91 kB
          Amareshwari Sriramadasu

        Activity

          People

            amareshwari Amareshwari Sriramadasu
            amareshwari Amareshwari Sriramadasu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: