Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4857

Materialization-Failed, query could be grouping mv's agg-call, when executing mv-match.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Here, query could be rewritten by mv, but it's failed now.

      -- mv: 
      select deptno, salary, min(commission) as commission_min 
      from emps 
      group by deptno, salary
      -- query: 
      select deptno, salary, max(salary), min(commission) 
      from emps 
      group by deptno, salary
      -- after mv match
      select deptno, salary, max(salary), commission_min
      from mv
      group by deptno, salary, commission_min
      
      

       

       

       

      Attachments

        Issue Links

          Activity

            People

              wojustme Xurenhe
              wojustme Xurenhe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m