You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Deneche A. Hakim (JIRA)" <ji...@apache.org> on 2014/12/19 19:28:13 UTC

[jira] [Commented] (DRILL-1852) over clause without order by clause throws an exception

    [ https://issues.apache.org/jira/browse/DRILL-1852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14253737#comment-14253737 ] 

Deneche A. Hakim commented on DRILL-1852:
-----------------------------------------

After further investigations it turned out the problem was coming from optiq-drill r12. Basically, Optiq doesn't expect a '*' identifier when checking for the monotonicity of columns and throws an assertion error. I created a [pull request|https://github.com/amansinha100/optiq/pull/1] to fix the problem in Optiq-drill and tested it locally to make sure this exception doesn't happen anymore:

I will leave this issue open until the fix is merged into optiq-drill, then I will add a test to make sure this exception doesn't happen again.

> over clause without order by clause throws an exception
> -------------------------------------------------------
>
>                 Key: DRILL-1852
>                 URL: https://issues.apache.org/jira/browse/DRILL-1852
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 0.6.0, 0.7.0, 0.8.0
>            Reporter: Deneche A. Hakim
>            Assignee: Deneche A. Hakim
>            Priority: Critical
>         Attachments: DRILL-1852 error message.txt
>
>
> When using over clause without an "order by" clause, the query throws an _AssertionError_ exception.
> For example, the following query throws an exception ( will attach a file containing the complete error message):
> {code}
> SELECT employee_id, position_id, salary, SUM(salary) OVER(PARTITION BY positition_id) FROM cp.`employee.json` LIMIT 20;
> {code}



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