You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Victoria Markman (JIRA)" <ji...@apache.org> on 2015/04/30 20:50:06 UTC
[jira] [Created] (DRILL-2925) Strange exception when avg is called
with invalid argument type and count(*)
Victoria Markman created DRILL-2925:
---------------------------------------
Summary: 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: Chris Westin
Priority: Minor
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)