tajo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyunsik Choi (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TAJO-674) ExplainLogicalPlan can cause NPE when a query includes derived tables
Date Wed, 02 Apr 2014 01:06:16 GMT

     [ https://issues.apache.org/jira/browse/TAJO-674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hyunsik Choi resolved TAJO-674.
-------------------------------

    Resolution: Not a Problem

> ExplainLogicalPlan can cause NPE when a query includes derived tables
> ---------------------------------------------------------------------
>
>                 Key: TAJO-674
>                 URL: https://issues.apache.org/jira/browse/TAJO-674
>             Project: Tajo
>          Issue Type: Bug
>          Components: planner/optimizer
>            Reporter: Hyunsik Choi
>            Assignee: Alvin Henrick
>             Fix For: 0.8-incubating, 1.0-incubating
>
>
> The reproduction query is as follows:
> {noformat}
> SELECT distinct col1 FROM (SELECT * FROM col2 WHERE col3='2014-02-27') a
> {noformat}
> Addition information is that col3 is a partition key.
> This query causes NPE as follows:
> {noformat}
> HTTP ERROR: 500
> INTERNAL_SERVER_ERROR
> RequestURI=/querydetail.jsp
> Caused by:
> java.lang.NullPointerException
> at org.apache.tajo.engine.planner.BasicLogicalPlanVisitor.visitTableSubQuery(BasicLogicalPlanVisitor.java:230)
> at org.apache.tajo.engine.planner.ExplainLogicalPlanVisitor.visitTableSubQuery(ExplainLogicalPlanVisitor.java:169)
> at org.apache.tajo.engine.planner.ExplainLogicalPlanVisitor.visitTableSubQuery(ExplainLogicalPlanVisitor.java:29)
> at org.apache.tajo.engine.planner.BasicLogicalPlanVisitor.visit(BasicLogicalPlanVisitor.java:93)
> at org.apache.tajo.engine.planner.ExplainLogicalPlanVisitor.visitUnaryNode(ExplainLogicalPlanVisitor.java:115)
> at org.apache.tajo.engine.planner.ExplainLogicalPlanVisitor.visitGroupBy(ExplainLogicalPlanVisitor.java:108)
> at org.apache.tajo.engine.planner.ExplainLogicalPlanVisitor.visitGroupBy(ExplainLogicalPlanVisitor.java:29)
> at org.apache.tajo.engine.planner.BasicLogicalPlanVisitor.visit(BasicLogicalPlanVisitor.java:75)
> at org.apache.tajo.engine.planner.ExplainLogicalPlanVisitor.getBlockPlanStrings(ExplainLogicalPlanVisitor.java:71)
> at org.apache.tajo.engine.planner.PlannerUtil.buildExplainString(PlannerUtil.java:701)
> at org.apache.tajo.engine.planner.global.MasterPlan.toString(MasterPlan.java:263)
> at org.apache.jsp.querydetail_jsp._jspService(org.apache.jsp.querydetail_jsp:231)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:324)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message