Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 820FD17308 for ; Wed, 13 May 2015 18:39:02 +0000 (UTC) Received: (qmail 67721 invoked by uid 500); 13 May 2015 18:39:02 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 67590 invoked by uid 500); 13 May 2015 18:39:02 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 67356 invoked by uid 99); 13 May 2015 18:39:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2015 18:39:02 +0000 Date: Wed, 13 May 2015 18:39:02 +0000 (UTC) From: "Aman Sinha (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-3057) A query that used to work before now fails in the optimizer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)