Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1167 Improve join capabilities
  3. PHOENIX-943

Handle pushed down post-filters for subquery in joins with limit and non-groupby aggregation

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0, 4.0.0
    • 4.2.0, 3.2.0
    • None
    • None

    Description

      Support cases like:
      1) select ... from A join (select id, b from T limit 10) as B on A.id = B.id where B.b = 'b'
      2) select ... from A join (select count c from T) as B on A.a = B.c where B.c > 10

      These 2 cases cannot be handled by SubselectRewriter#applyPostFilters(), thus JoinCompiler should compile post-filters into query-plans for subqueries.

      Attachments

        1. 943.patch
          42 kB
          Wei Xue
        2. 943-2.patch
          44 kB
          Wei Xue

        Activity

          People

            maryannxue Wei Xue
            maryannxue Wei Xue
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified