drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victoria Markman (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-1998) Confusing error message when you pass character data type to SUM aggregate function
Date Thu, 08 Oct 2015 20:33:26 GMT

     [ 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)

Mime
View raw message