[
https://issues.apache.org/jira/browse/TAJO-833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14002678#comment-14002678
]
ASF GitHub Bot commented on TAJO-833:
-------------------------------------
GitHub user babokim opened a pull request:
https://github.com/apache/tajo/pull/11
TAJO-833
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/babokim/tajo TAJO-833
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/11.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11
----
commit 5dda14a9d3e2216c1c80ae2b3654a78b852df269
Author: 김형준 <[email protected]>
Date: 2014-05-19T15:47:45Z
TAJO-833
----
> NPE occurs when using the column as a alias name in the multiple DISTINCT.
> --------------------------------------------------------------------------
>
> Key: TAJO-833
> URL: https://issues.apache.org/jira/browse/TAJO-833
> Project: Tajo
> Issue Type: Bug
> Reporter: Hyoungjun Kim
> Assignee: Hyoungjun Kim
> Priority: Minor
> Attachments: TAJO-833.patch
>
>
> See title. The next query using column name l_partkey as alias throws NPE.
> {code:sql}
> select
> lineitem.l_orderkey as l_orderkey,
> lineitem.l_partkey as l_partkey,
> count(distinct lineitem.l_partkey) as cnt1,
> count(distinct lineitem.l_suppkey) as cnt2,
> sum(lineitem.l_quantity) as sum1
> from
> lineitem
> group by
> lineitem.l_orderkey, lineitem.l_partkey
> {code}
> {noformat}
> 2014-05-16 16:28:42,963 ERROR org.apache.tajo.worker.Task:
> java.lang.NullPointerException
> at org.apache.tajo.storage.VTuple.getFloat8(VTuple.java:151)
> at
> org.apache.tajo.storage.RawFile$RawFileAppender.addTuple(RawFile.java:640)
> at
> org.apache.tajo.engine.planner.physical.HashShuffleFileWriteExec.next(HashShuffleFileWriteExec.java:120)
> at org.apache.tajo.worker.Task.run(Task.java:383)
> at org.apache.tajo.worker.TaskRunner$1.run(TaskRunner.java:391)
> at java.lang.Thread.run(Thread.java:744)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)