You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Khurram Faraaz (JIRA)" <ji...@apache.org> on 2015/07/31 02:08:04 UTC

[jira] [Updated] (DRILL-3582) Assert with the window function and group by when aggregate is used in order by clause

     [ https://issues.apache.org/jira/browse/DRILL-3582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Khurram Faraaz updated DRILL-3582:
----------------------------------
    Summary: Assert with the window function and group by when aggregate is used in order by clause  (was: Asset with the window function and group by when aggregate is used in order by clause)

> Assert with the window function and group by when aggregate is used in order by clause
> --------------------------------------------------------------------------------------
>
>                 Key: DRILL-3582
>                 URL: https://issues.apache.org/jira/browse/DRILL-3582
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 1.1.0
>            Reporter: Victoria Markman
>            Assignee: Jinfeng Ni
>              Labels: window_function
>
> {code}
> 0: jdbc:drill:drillbit=localhost> select sum(a1), rank() over (order by sum(a1)) from t1 group by c1;
> Error: SYSTEM ERROR: AssertionError: Internal error: invariant violated: conversion result not null
> [Error Id: 5ebc8f0e-3ca5-4916-aa3b-c272bdd9f585 on 172.16.1.129:31010] (state=,code=0)
> {code}
> drillbit.log
> {code}
> org.apache.drill.common.exceptions.UserException: SYSTEM ERROR: AssertionError: Internal error: invariant violated: conversion result not null
> [Error Id: d276c7cc-b5fb-47ab-8058-098b5f227cf3 on 172.16.1.129:31010]
>         at org.apache.drill.common.exceptions.UserException$Builder.build(UserException.java:523) ~[drill-common-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.work.foreman.Foreman$ForemanResult.close(Foreman.java:737) [drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.work.foreman.Foreman$StateSwitch.processEvent(Foreman.java:839) [drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.work.foreman.Foreman$StateSwitch.processEvent(Foreman.java:781) [drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.common.EventProcessor.sendEvent(EventProcessor.java:73) [drill-common-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.work.foreman.Foreman$StateSwitch.moveToState(Foreman.java:783) [drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.work.foreman.Foreman.moveToState(Foreman.java:892) [drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:253) [drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71]
>         at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
> Caused by: org.apache.drill.exec.work.foreman.ForemanException: Unexpected exception during fragment initialization: Internal error: invariant violated: conversion result not null
>         ... 4 common frames omitted
> Caused by: java.lang.AssertionError: Internal error: invariant violated: conversion result not null
>         at org.apache.calcite.util.Util.newInternal(Util.java:775) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.util.Util.permAssert(Util.java:883) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter$Blackboard.convertExpression(SqlToRelConverter.java:3964) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter$Blackboard.convertSortExpression(SqlToRelConverter.java:3981) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter.convertOver(SqlToRelConverter.java:1756) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter.access$2(SqlToRelConverter.java:1726) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter$Blackboard.convertExpression(SqlToRelConverter.java:3956) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter.createAggImpl(SqlToRelConverter.java:2540) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter.convertAgg(SqlToRelConverter.java:2360) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter.convertSelectImpl(SqlToRelConverter.java:604) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter.convertSelect(SqlToRelConverter.java:564) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter.convertQueryRecursive(SqlToRelConverter.java:2759) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.sql2rel.SqlToRelConverter.convertQuery(SqlToRelConverter.java:522) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.calcite.prepare.PlannerImpl.convert(PlannerImpl.java:198) ~[calcite-core-1.1.0-drill-r14.jar:1.1.0-drill-r14]
>         at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToRel(DefaultSqlHandler.java:450) ~[drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.validateAndConvert(DefaultSqlHandler.java:193) ~[drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.getPlan(DefaultSqlHandler.java:159) ~[drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan(DrillSqlWorker.java:178) ~[drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:903) [drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:242) [drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         ... 3 common frames omitted
> 2015-07-30 16:56:00,923 [2a45466e-e8a0-e3fd-9e74-c8361270f7fc:foreman] INFO  o.a.drill.exec.work.foreman.Foreman - State change requested.  PENDING --> FAILED
> org.apache.drill.exec.work.foreman.ForemanException: Unexpected exception during fragment initialization: Internal error: invariant violated: conversion result not null
>         at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:253) [drill-java-exec-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71]
>         at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)