Dmitry Lychagin created ASTERIXDB-2828:
------------------------------------------

             Summary: Internal error with WITH and GROUP BY ROLLUP
                 Key: ASTERIXDB-2828
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2828
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: COMP - Compiler
    Affects Versions: 0.9.7
            Reporter: Dmitry Lychagin
            Assignee: Dmitry Lychagin
             Fix For: 0.9.7


The following query fail with internal error: 

{noformat}
with total_sum as (
  select value sum(ten) from tenk
)[0]
 
select two, four, sum(ten) as agg_sum, total_sum
from tenk
group by rollup(two, four)
{noformat}

Error 

{noformat}
ClassCastException: class 
org.apache.hyracks.algebricks.core.algebra.operators.logical.GroupByOperator 
cannot be cast to class 
org.apache.hyracks.algebricks.core.algebra.operators.logical.AggregateOperator 
{noformat}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to