You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tajo.apache.org by "Jihoon Son (JIRA)" <ji...@apache.org> on 2013/10/08 14:56:41 UTC

[jira] [Created] (TAJO-238) NullPointerException occurs when a query includes an alias of UDF at the group by clause

Jihoon Son created TAJO-238:
-------------------------------

             Summary: NullPointerException occurs when a query includes an alias of UDF at the group by clause
                 Key: TAJO-238
                 URL: https://issues.apache.org/jira/browse/TAJO-238
             Project: Tajo
          Issue Type: Bug
          Components: operator/function/udf
            Reporter: Jihoon Son
            Assignee: Jihoon Son
             Fix For: 0.2-incubating


The query which I run is
{code}
SELECT hour(time) as t, sum(size) 
FROM log 
GROUP BY t  
ORDER BY t asc
{code}

The function hour() returns the hour of values of the column 'time'.
The error log is
{code}
13/10/08 21:21:18 ERROR worker.Task: java.lang.NullPointerException
        at org.apache.tajo.catalog.Schema.getColumnId(Schema.java:154)
        at org.apache.tajo.engine.eval.FieldEval.eval(FieldEval.java:51)
        at org.apache.tajo.engine.eval.GeneralFunctionEval.terminate(GeneralFunctionEval.java:62)
        at org.apache.tajo.engine.planner.physical.HashAggregateExec.next(HashAggregateExec.java:94)
        at org.apache.tajo.engine.planner.physical.MemSortExec.next(MemSortExec.java:54)
        at org.apache.tajo.engine.planner.physical.IndexedStoreExec.next(IndexedStoreExec.java:92)
        at org.apache.tajo.worker.Task.run(Task.java:381)
        at org.apache.tajo.worker.TaskRunner$2.run(TaskRunner.java:364)
        at java.lang.Thread.run(Thread.java:679)
{code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)