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

Aman Sinha updated DRILL-3212:
------------------------------
    Fix Version/s: Future

> 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
>             Fix For: Future
>
>
> 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)

Reply via email to