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

Skip expression rewrite in columnar rewriter

Details

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

    Description

      There are certain cases where expressions has conditions which needs to be applied for each resultant row. For eg. sum(case when city_dim.city_name = 'abc' then total_count when city_dim.city_name is null then 0 end) . Columnar rewriter is rewriting such expression as fact subquery and passing the result to main query. We should skip such rewrite and do it only once in the main query.

      Attachments

        1. LENS-603-2.patch
          22 kB
          SushilMohanty

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: