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/05/29 02:47:32 UTC

[jira] [Created] (DRILL-3212) Passing star as an argument to any drill function results in NPE

Victoria Markman created DRILL-3212:
---------------------------------------

             Summary: Passing star as an argument to any drill function results in NPE
                 Key: DRILL-3212
                 URL: https://issues.apache.org/jira/browse/DRILL-3212
             Project: Apache Drill
          Issue Type: Bug
          Components: Query Planning & Optimization
    Affects Versions: 1.0.0
            Reporter: Victoria Markman
            Assignee: Jinfeng Ni
            Priority: Minor


I made a mistake and typed '*' in a SUM function and got NPE:

{code}
0: jdbc:drill:schema=dfs> select sum(*) from t1;
Error: SYSTEM ERROR: java.lang.IndexOutOfBoundsException: index (0) must be less than size (0)
[Error Id: 95baf256-8eed-426b-a2e2-5c4652c85bc8 on atsqa4-133.qa.lab:31010] (state=,code=0)
0: jdbc:drill:schema=dfs> select avg(*) from t1;
Error: SYSTEM ERROR: java.lang.IndexOutOfBoundsException: index (0) must be less than size (0)
[Error Id: 771b2b36-6a4f-4a1d-9b01-b2fd6947ffb2 on atsqa4-133.qa.lab:31010] (state=,code=0)
{code}

Try it with any other function, it will fail in exactly same way.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)