Return-Path: X-Original-To: apmail-tajo-dev-archive@minotaur.apache.org Delivered-To: apmail-tajo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A9FC1078F for ; Sun, 19 Jan 2014 01:44:46 +0000 (UTC) Received: (qmail 4601 invoked by uid 500); 19 Jan 2014 01:44:45 -0000 Delivered-To: apmail-tajo-dev-archive@tajo.apache.org Received: (qmail 4527 invoked by uid 500); 19 Jan 2014 01:44:45 -0000 Mailing-List: contact dev-help@tajo.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tajo.incubator.apache.org Delivered-To: mailing list dev@tajo.incubator.apache.org Received: (qmail 4518 invoked by uid 99); 19 Jan 2014 01:44:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jan 2014 01:44:45 +0000 X-ASF-Spam-Status: No, hits=-2000.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 19 Jan 2014 01:44:44 +0000 Received: (qmail 3594 invoked by uid 99); 19 Jan 2014 01:44:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jan 2014 01:44:20 +0000 Date: Sun, 19 Jan 2014 01:44:20 +0000 (UTC) From: "hyoungjunkim (JIRA)" To: dev@tajo.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (TAJO-360) If there is no matched function, catalog causes NPE. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAJO-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] hyoungjunkim reassigned TAJO-360: --------------------------------- Assignee: hyoungjunkim > If there is no matched function, catalog causes NPE. > ---------------------------------------------------- > > Key: TAJO-360 > URL: https://issues.apache.org/jira/browse/TAJO-360 > Project: Tajo > Issue Type: Bug > Components: function/udf > Reporter: Hyunsik Choi > Assignee: hyoungjunkim > Fix For: 0.8-incubating > > > If there is no matched function, catalog causes NullPointerException. This case should cause a proper exception like NoSuchFunctionException. > {code} > java.lang.NullPointerException > at org.apache.tajo.catalog.FunctionDesc.(FunctionDesc.java:56) > at org.apache.tajo.catalog.AbstractCatalogClient.getFunction(AbstractCatalogClient.java:330) > at org.apache.tajo.catalog.AbstractCatalogClient.getFunction(AbstractCatalogClient.java:303) > at org.apache.tajo.engine.planner.LogicalPlanner.createEvalTree(LogicalPlanner.java:1076) > at org.apache.tajo.engine.planner.LogicalPlanner.createTarget(LogicalPlanner.java:1170) > at org.apache.tajo.engine.planner.LogicalPlanner.annotateTargets(LogicalPlanner.java:1162) > at org.apache.tajo.engine.planner.LogicalPlanner.visitProjection(LogicalPlanner.java:647) > at org.apache.tajo.engine.planner.LogicalPlanner.visitProjection(LogicalPlanner.java:70) > at org.apache.tajo.engine.planner.BaseAlgebraVisitor.visitChild(BaseAlgebraVisitor.java:53) > at org.apache.tajo.engine.planner.LogicalPlanner.createPlan(LogicalPlanner.java:103) > at org.apache.tajo.engine.eval.ExprTestBase.getRawTargets(ExprTestBase.java:79) > at org.apache.tajo.engine.eval.ExprTestBase.testEval(ExprTestBase.java:123) > at org.apache.tajo.engine.eval.ExprTestBase.testSimpleEval(ExprTestBase.java:91) > at org.apache.tajo.engine.function.TestStringOperatorsAndFunctions.testOctetLength(TestStringOperatorsAndFunctions.java:299) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) > at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) > at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) > at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) > at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) > at org.junit.runners.ParentRunner.run(ParentRunner.java:300) > at org.junit.runner.JUnitCore.run(JUnitCore.java:157) > at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77) > at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) > 2013-12-03 12:06:24,901 INFO rpc.NettyServerBase (NettyServerBase.java:shutdown(120)) - Rpc (CatalogProtocol) listened on 127.0.0.1:46093) shutdown > 2013-12-03 12:06:24,901 INFO catalog.CatalogServer (CatalogServer.java:stop(173)) - Catalog Server (127.0.0.1:46093) shutdown > {code} -- This message was sent by Atlassian JIRA (v6.1.5#6160)