Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-833

NPE occurs when using the column as a alias name in the multiple DISTINCT.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.0, 0.8.1
    • None
    • None

    Description

      See title. The next query using column name l_partkey as alias throws NPE.

      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
      
      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)
      

      Attachments

        1. TAJO-833.patch
          14 kB
          Hyoungjun Kim

        Activity

          People

            hjkim Hyoungjun Kim
            hjkim Hyoungjun Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: