drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Westin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-2925) Strange exception when avg is called with invalid argument type and count(*)
Date Thu, 02 Jul 2015 01:22:04 GMT

     [ https://issues.apache.org/jira/browse/DRILL-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Westin updated DRILL-2925:
--------------------------------
    Assignee: Deneche A. Hakim  (was: Chris Westin)

> Strange exception when avg is called with invalid argument type and count(*)
> ----------------------------------------------------------------------------
>
>                 Key: DRILL-2925
>                 URL: https://issues.apache.org/jira/browse/DRILL-2925
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Flow
>    Affects Versions: 0.9.0
>            Reporter: Victoria Markman
>            Assignee: Deneche A. Hakim
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> This weird exception is thrown only with this particular combination of function calls:
count(*), and both distinct and non distinct call to AVG.
> If you run all these separately, you will get "usual" runtime exception about missing
function implementation.
> {code}
> 0: jdbc:drill:schema=dfs> select
> . . . . . . . . . . . . >         count(*),
> . . . . . . . . . . . . >         avg(distinct c_varchar),
> . . . . . . . . . . . . >         avg(c_varchar)
> . . . . . . . . . . . . > from
> . . . . . . . . . . . . >         alltypes
> . . . . . . . . . . . . > ;
> Query failed: SYSTEM ERROR: Invalid value for boolean: il304488381660192170587
> Fragment 0:0
> [f92bb536-8403-416e-9239-4aaa5c2e4d23 on atsqa4-133.qa.lab:31010]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}
> AVG by itself:
> {code}
> 0: jdbc:drill:schema=dfs> select avg(c_varchar) from alltypes;
> Query failed: SYSTEM ERROR: Failure while trying to materialize incoming schema.  Errors:
> Error in expression at index -1.  Error: Missing function implementation: [castINT(BIT-OPTIONAL)].
 Full expression: --UNKNOWN EXPRESSION--..
> Fragment 0:0
> 0: jdbc:drill:schema=dfs> select avg(distinct c_varchar) from alltypes;
> Query failed: SYSTEM ERROR: Failure while trying to materialize incoming schema.  Errors:
> Error in expression at index -1.  Error: Missing function implementation: [castINT(BIT-OPTIONAL)].
 Full expression: --UNKNOWN EXPRESSION--..
> Fragment 0:0
> [2d3adc96-7043-4854-bd31-28181df647a6 on atsqa4-133.qa.lab:31010]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}
> AVG with COUNT(*)
> {code}
> 0: jdbc:drill:schema=dfs> select count(*), avg(c_varchar) from alltypes;
> Query failed: SYSTEM ERROR: Failure while trying to materialize incoming schema.  Errors:
> Error in expression at index -1.  Error: Missing function implementation: [castINT(BIT-OPTIONAL)].
 Full expression: --UNKNOWN EXPRESSION--..
> Fragment 0:0
> [e7e165e5-adda-4a68-9f5a-a3c3d0f0faed on atsqa4-133.qa.lab:31010]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> 0: jdbc:drill:schema=dfs> select count(*), avg(distinct c_varchar) from alltypes;
> Query failed: SYSTEM ERROR: Failure while trying to materialize incoming schema.  Errors:
>  
> Error in expression at index -1.  Error: Missing function implementation: [castINT(BIT-OPTIONAL)].
 Full expression: --UNKNOWN EXPRESSION--..
> Fragment 0:0
> [ca16cd88-c9dd-46a7-983b-af722c88777d 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