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] [Commented] (TAJO-238) NullPointerException occurs when a query includes an alias of UDF at the order by clause
Date Tue, 08 Oct 2013 14:02:44 GMT

    [ https://issues.apache.org/jira/browse/TAJO-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789226#comment-13789226
] 

Jihoon Son commented on TAJO-238:
---------------------------------

It seems due to the missing qualifier of the first column of the schema (at Line 49 in FieldEval)

> NullPointerException occurs when a query includes an alias of UDF at the order 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