Hyoungjun Kim created TAJO-833:
----------------------------------

             Summary: 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
            Priority: Minor


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)

Reply via email to