Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE52810B02 for ; Wed, 16 Oct 2013 17:08:04 +0000 (UTC) Received: (qmail 833 invoked by uid 500); 16 Oct 2013 17:07:49 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 704 invoked by uid 500); 16 Oct 2013 17:07:48 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 617 invoked by uid 500); 16 Oct 2013 17:07:46 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 577 invoked by uid 99); 16 Oct 2013 17:07:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 17:07:46 +0000 Date: Wed, 16 Oct 2013 17:07:46 +0000 (UTC) From: "Hudson (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5492) Explain query fails with NPE if a client doesn't call getResultSetSchema() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-5492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13796996#comment-13796996 ] Hudson commented on HIVE-5492: ------------------------------ FAILURE: Integrated in Hive-trunk-hadoop1-ptest #206 (See [https://builds.apache.org/job/Hive-trunk-hadoop1-ptest/206/]) HIVE-5492 - Explain query fails with NPE if a client doesn't call getResultSetSchema() (Xuefu Zhang via Brock Noland) (brock: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1532472) * /hive/trunk/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java > Explain query fails with NPE if a client doesn't call getResultSetSchema() > -------------------------------------------------------------------------- > > Key: HIVE-5492 > URL: https://issues.apache.org/jira/browse/HIVE-5492 > Project: Hive > Issue Type: Bug > Components: Thrift API > Affects Versions: 0.11.0 > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Fix For: 0.13.0 > > Attachments: HIVE-5492.patch > > > If a thrift client makes an explain query and fetches results without calling getResultSetSchema() first, NullPointerException will occur in Hive. > {code} > org.apache.hive.service.cli.HiveSQLException: java.lang.NullPointerException > at org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:262) > at org.apache.hive.service.cli.operation.OperationManager.getOperationNextRowSet(OperationManager.java:179) > at org.apache.hive.service.cli.session.HiveSessionImpl.fetchResults(HiveSessionImpl.java:422) > at org.apache.hive.service.cli.CLIService.fetchResults(CLIService.java:333) > at org.apache.hive.service.cli.thrift.ThriftCLIService.FetchResults(ThriftCLIService.java:413) > at org.apache.hive.service.cli.thrift.TCLIService$Processor$FetchResults.getResult(TCLIService.java:1613) > at org.apache.hive.service.cli.thrift.TCLIService$Processor$FetchResults.getResult(TCLIService.java:1598) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at org.apache.hive.service.auth.TUGIContainingProcessor$1.run(TUGIContainingProcessor.java:40) > at org.apache.hive.service.auth.TUGIContainingProcessor$1.run(TUGIContainingProcessor.java:37) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1477) > at org.apache.hadoop.hive.shims.HadoopShimsSecure.doAs(HadoopShimsSecure.java:527) > at org.apache.hive.service.auth.TUGIContainingProcessor.process(TUGIContainingProcessor.java:37) > at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:244) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:724) > Caused by: java.lang.NullPointerException > at org.apache.hive.service.cli.Row.(Row.java:45) > at org.apache.hive.service.cli.RowSet.addRow(RowSet.java:61) > at org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:254) > ... 19 more > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)