You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Aman Sinha (JIRA)" <ji...@apache.org> on 2015/05/13 20:39:02 UTC

[jira] [Commented] (DRILL-3057) A query that used to work before now fails in the optimizer

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

Aman Sinha commented on DRILL-3057:
-----------------------------------

The query is illegal.  Aggregates are not allowed in the group-by clause so I am not sure how this could have worked before.  

> A query that used to work before now fails in the optimizer
> -----------------------------------------------------------
>
>                 Key: DRILL-3057
>                 URL: https://issues.apache.org/jira/browse/DRILL-3057
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 1.0.0
>            Reporter: Krystal
>            Assignee: Jinfeng Ni
>         Attachments: drill3057.log
>
>
> git.commit.id.abbrev=71fe8f0
> The following query used to work before now fails:
> 0: jdbc:drill:schema=local.default> select ss_ticket_number, count(*) counts from `dfs.drillTestDirTpcdsImpalaSF1`.store_sales group by ss_ticket_number,counts order by ss_ticket_number;
> Error: SYSTEM ERROR: java.lang.AssertionError: RecordType(ANY ss_ticket_number, ANY counts, BIGINT counts, ANY E_X_P_R_H_A_S_H_F_I_E_L_D)



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