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

Optimizing fact subquery by removing non aggregated expression columns from group by clause

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5
    • driver-jdbc
    • None

    Description

      Currently the fact keys used in SQL are part of group by clause by default. If single row functions e.g case, having fact keys part of it and used in an aggregate expression such keys need to be removed from fact subquery group by clause.
      Eg. sum(case when fact.key1 = '123' then msr1 when fact.key2 = '345' then msr2 end)

      Attachments

        1. LENS-835.patch
          17 kB
          SushilMohanty

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: