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 4F3451069F for ; Fri, 15 Nov 2013 02:07:22 +0000 (UTC) Received: (qmail 39267 invoked by uid 500); 15 Nov 2013 02:07:21 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 39224 invoked by uid 500); 15 Nov 2013 02:07:21 -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 39216 invoked by uid 500); 15 Nov 2013 02:07:21 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 39213 invoked by uid 99); 15 Nov 2013 02:07:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Nov 2013 02:07:21 +0000 Date: Fri, 15 Nov 2013 02:07:21 +0000 (UTC) From: "Szehon Ho (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HIVE-5797) select * throws exception for orcfile table after adding new columns 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-5797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Szehon Ho resolved HIVE-5797. ----------------------------- Resolution: Duplicate Just saw this, it is a duplicate of HIVE-4975 > select * throws exception for orcfile table after adding new columns > -------------------------------------------------------------------- > > Key: HIVE-5797 > URL: https://issues.apache.org/jira/browse/HIVE-5797 > Project: Hive > Issue Type: Bug > Components: Serializers/Deserializers > Reporter: Szehon Ho > > Given the following tables: > {code} > select * from two; > +-----+----+ > | id | a | > +-----+----+ > | 1 | a | > | 2 | b | > +-----+----+ > select * from three; > +-----+----+----+ > | id | a | b | > +-----+----+----+ > | 1 | a | z | > | 2 | b | y | > | 3 | c | x | > +-----+----+----+ > {code} > Execute the following steps: > {code} > create table testorc (id bigint, a string) stored as orc; > insert into table testorc select * from two; > select * from testorc; //returns correctly > +-----+----+ > | id | a | > +-----+----+ > | 1 | a | > | 2 | b | > +-----+----+ > alter table testorc add columns (b string); > insert into table testorc select * from three; > select * from testorc; > {code} > throws the following exception: > {code} > Thread [pool-4-thread-1] (Suspended (exception ArrayIndexOutOfBoundsException)) > OrcStruct$OrcStructInspector.getStructFieldData(Object, StructField) line: 210 > DelegatedStructObjectInspector.getStructFieldData(Object, StructField) line: 85 > ExprNodeColumnEvaluator._evaluate(Object, int) line: 94 > ExprNodeColumnEvaluator(ExprNodeEvaluator).evaluate(Object, int) line: 77 > ExprNodeColumnEvaluator(ExprNodeEvaluator).evaluate(Object) line: 65 > SelectOperator.processOp(Object, int) line: 79 > SelectOperator(Operator).process(Object, int) line: 488 > TableScanOperator(Operator).forward(Object, ObjectInspector) line: 826 > TableScanOperator.processOp(Object, int) line: 91 > TableScanOperator(Operator).process(Object, int) line: 488 > FetchOperator.pushRow(InspectableObject) line: 518 > FetchOperator.pushRow() line: 510 > FetchTask.fetch(ArrayList) line: 138 > Driver.getResults(ArrayList) line: 1499 > SQLOperation.getNextRowSet(FetchOrientation, long) line: 219 > OperationManager.getOperationNextRowSet(OperationHandle, FetchOrientation, long) line: 171 > HiveSessionImpl.fetchResults(OperationHandle, FetchOrientation, long) line: 420 > CLIService.fetchResults(OperationHandle, FetchOrientation, long) line: 318 > ThriftBinaryCLIService(ThriftCLIService).FetchResults(TFetchResultsReq) line: 386 > TCLIService$Processor$FetchResults.getResult(I, FetchResults_args) line: 1373 > TCLIService$Processor$FetchResults.getResult(Object, TBase) line: 1358 > TCLIService$Processor$FetchResults(ProcessFunction).process(int, TProtocol, TProtocol, I) line: 39 > TCLIService$Processor(TBaseProcessor).process(TProtocol, TProtocol) line: 39 > TUGIContainingProcessor$1.run() line: 58 > TUGIContainingProcessor$1.run() line: 55 > AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) line: not available [native method] > Subject.doAs(Subject, PrivilegedExceptionAction) line: 415 > UserGroupInformation.doAs(PrivilegedExceptionAction) line: 1485 > Hadoop23Shims(HadoopShimsSecure).doAs(UserGroupInformation, PrivilegedExceptionAction) line: 471 > TUGIContainingProcessor.process(TProtocol, TProtocol) line: 55 > TThreadPoolServer$WorkerProcess.run() line: 206 > ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) line: 1145 > ThreadPoolExecutor$Worker.run() line: 615 > Thread.run() line: 724 > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)