tajo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jihoon Son (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TAJO-238) NullPointerException occurs when a query includes an alias of UDF at the group by clause
Date Tue, 08 Oct 2013 12:56:41 GMT
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)

Mime
View raw message