Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 218FA18597 for ; Thu, 8 Oct 2015 20:33:35 +0000 (UTC) Received: (qmail 29171 invoked by uid 500); 8 Oct 2015 20:33:26 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 29113 invoked by uid 500); 8 Oct 2015 20:33:26 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 29063 invoked by uid 99); 8 Oct 2015 20:33:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2015 20:33:26 +0000 Date: Thu, 8 Oct 2015 20:33:26 +0000 (UTC) From: "Victoria Markman (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DRILL-1998) Confusing error message when you pass character data type to SUM aggregate function 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-1998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Victoria Markman resolved DRILL-1998. ------------------------------------- Resolution: Fixed > Confusing error message when you pass character data type to SUM aggregate function > ----------------------------------------------------------------------------------- > > Key: DRILL-1998 > URL: https://issues.apache.org/jira/browse/DRILL-1998 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Data Types > Affects Versions: 0.8.0 > Reporter: Victoria Markman > Priority: Minor > Fix For: Future > > > t.json > {code} > { "a2": 1, "b2": 1, "c2": 1, "d2": "aaa", e1: "2015-01-01"} > { "a2": 2, "b2": 2, "c2": 2, "d2": "bbb", e1: "2015-01-02"} > { "a2": 2, "b2": 2, "c2": 2, "d2": "bbb", e1: "2015-01-02"} > { "a2": 5, "b2": 5, "c2": 5, "d2": "eee", e1: "2015-01-05"} > {code} > {code} > 0: jdbc:drill:schema=dfs> select sum(d2) from `t2.json`; > Query failed: Query failed: Failure while running fragment., Only COUNT aggregate function supported for Boolean type [ 003f011e-ae98-47ac-99c8-1674b1edb74b on atsqa4-133.qa.lab:31010 ] > [ 003f011e-ae98-47ac-99c8-1674b1edb74b on atsqa4-133.qa.lab:31010 ] > Error: exception while executing query: Failure while executing query. (state=,code=0) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)