You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/11/18 05:45:33 UTC

[jira] [Commented] (TAJO-1190) INSERT INTO to partition tables may cause NPE.

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

ASF GitHub Bot commented on TAJO-1190:
--------------------------------------

GitHub user hyunsik opened a pull request:

    https://github.com/apache/tajo/pull/250

    TAJO-1190: INSERT INTO to partition tables may cause NPE.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hyunsik/tajo TAJO-1190

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tajo/pull/250.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 #250
    
----
commit 8822b71ce5dd4d96be32329e44196ee452b6f8fd
Author: Hyunsik Choi <hy...@apache.org>
Date:   2014-11-18T04:44:44Z

    TAJO-1190: INSERT INTO to partition tables may cause NPE.

----


> INSERT INTO to partition tables may cause NPE.
> ----------------------------------------------
>
>                 Key: TAJO-1190
>                 URL: https://issues.apache.org/jira/browse/TAJO-1190
>             Project: Tajo
>          Issue Type: Improvement
>            Reporter: Hyunsik Choi
>            Assignee: Hyunsik Choi
>             Fix For: 0.9.1
>
>
> *Reproduction*
> {noformat}
> tajo> CREATE EXTERNAL TABLE distinct_tb (distinct_id text) USING CSV PARTITION BY COLUMN (CNT TEXT) LOCATION '/user/hyunsik/test';
> OK
> > insert overwrite into distinct_tb (distinct_id) select l_returnflag from lineitem where l_orderkey = 1000 limit 1;
> default> insert overwrite into distinct_tb (distinct_id) select l_returnflag from lineitem where l_orderkey = 1000 limit 1;
> Progress: 0%, response time: 0.202 sec
> Progress: 0%, response time: 0.203 sec
> Progress: 0%, response time: 0.607 sec
> Progress: 11%, response time: 1.409 sec
> Progress: 28%, response time: 2.414 sec
> ERROR: java.lang.NullPointerException
> java.io.IOException: java.lang.NullPointerException
> 	at org.apache.tajo.engine.planner.physical.HashShuffleFileWriteExec.next(HashShuffleFileWriteExec.java:152)
> 	at org.apache.tajo.worker.Task.run(Task.java:448)
> 	at org.apache.tajo.worker.TaskRunner$1.run(TaskRunner.java:276)
> 	at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.NullPointerException
> 	at org.apache.tajo.engine.planner.physical.HashShuffleFileWriteExec.next(HashShuffleFileWriteExec.java:142)
> 	... 3 more
> {noformat}
> *Description*
> This problem actually includes three bugs: 1) NULL of InputStats of SeqScan, 2) NULL of getCause().getMessage in RemoteCallException, and 3) some null check bug in TajoWorkerClientService. 
> This patch fixes the all bugs that I found.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)