[
https://issues.apache.org/jira/browse/DRILL-1998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14949337#comment-14949337
]
Victoria Markman commented on DRILL-1998:
-----------------------------------------
This bug is fixed in version 1.1.0, see comments in:
https://issues.apache.org/jira/browse/DRILL-3245
In 1.2.0
{code}
0: jdbc:drill:schema=dfs> select sum(d2) from `t1.json`;
Error: UNSUPPORTED_OPERATION ERROR: Only COUNT, MIN and MAX aggregate functions
supported for VarChar type
Fragment 0:0
[Error Id: 405da0ff-f3c9-4617-a463-76cade51aefe on atsqa4-133.qa.lab:31010]
(state=,code=0)
{code}
> 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)