[
https://issues.apache.org/jira/browse/TAJO-948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14135365#comment-14135365
]
ASF GitHub Bot commented on TAJO-948:
-------------------------------------
GitHub user eminency opened a pull request:
https://github.com/apache/tajo/pull/142
TAJO-948: INSERT INTO' statement to non existence table casuses NPE
The cause is there is no part to check if the table instance is null before
it's used.
Please review if the changeset is appropriate.
Thanks.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/eminency/tajo TAJO-948
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/142.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 #142
----
commit 0b96b4cf26bd24f108ff7e268e1c3199693cbc7f
Author: Jongyoung Park <[email protected]>
Date: 2014-09-16T09:57:15Z
Checking null code is added to verify table existence
----
> 'INSERT INTO' statement to non existence table casuses NPE.
> -----------------------------------------------------------
>
> Key: TAJO-948
> URL: https://issues.apache.org/jira/browse/TAJO-948
> Project: Tajo
> Issue Type: Bug
> Components: planner/optimizer
> Reporter: Hyunsik Choi
> Assignee: Jongyoung Park
> Priority: Minor
> Labels: newbie
> Fix For: 0.9.0
>
>
> See the title. In the following example, lineitem_8 does not exist in
> catalog. In this case, if we use INSERT INTO statement, NPE will be caused.
> This is a logical validator bug.
> {noformat}
> default> insert into lineitem_8 SELECT L_ORDERKEY, L_PARTKEY, L_SUPPKEY,
> L_LINENUMBER, L_QUANTITY, L_EXTENDEDPRICE, L_DISCOUNT, L_TAX, L_LINESTATUS,
> L_SHIPDATE, L_COMMITDATE, L_RECEIPTDATE, L_SHIPINSTRUCT, L_SHIPMODE,
> L_COMMENT, L_RETURNFLAG FROM LINEITEM;
> ERROR: java.lang.NullPointerException
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)