You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Victoria Markman (JIRA)" <ji...@apache.org> on 2015/01/13 21:01:34 UTC
[jira] [Updated] (DRILL-1998) Confusing error message when you pass
character data type to SUM aggregate function
[ https://issues.apache.org/jira/browse/DRILL-1998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Victoria Markman updated DRILL-1998:
------------------------------------
Description:
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}
was:
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)
> 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
> Assignee: Daniel Barclay (Drill/MapR)
> Priority: Minor
>
> 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)