Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87B8310982 for ; Fri, 11 Mar 2016 18:07:39 +0000 (UTC) Received: (qmail 19031 invoked by uid 500); 11 Mar 2016 18:07:39 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 18982 invoked by uid 500); 11 Mar 2016 18:07:39 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 18948 invoked by uid 99); 11 Mar 2016 18:07:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2016 18:07:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F20712C1F5C for ; Fri, 11 Mar 2016 18:07:38 +0000 (UTC) Date: Fri, 11 Mar 2016 18:07:38 +0000 (UTC) From: "Illya Yalovyy (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-13185) orc.ReaderImp.ensureOrcFooter() method fails on small text files with IndexOutOfBoundsException 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-13185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Illya Yalovyy updated HIVE-13185: --------------------------------- Status: Patch Available (was: Open) > orc.ReaderImp.ensureOrcFooter() method fails on small text files with IndexOutOfBoundsException > ----------------------------------------------------------------------------------------------- > > Key: HIVE-13185 > URL: https://issues.apache.org/jira/browse/HIVE-13185 > Project: Hive > Issue Type: Bug > Components: ORC > Affects Versions: 2.1.0 > Reporter: Illya Yalovyy > Assignee: Illya Yalovyy > Attachments: HIVE-13185.1.patch > > > Steps to reproduce: > 1. Create a Text source table with one line of data: > {code} > create table src (id int); > insert overwrite table src values (1); > {code} > 2. Create a target table: > {code} > create table trg (id int); > {code} > 3. Try to load small text file to the target table: > {code} > load data inpath 'user/hive/warehouse/src/000000_0' into table trg; > {code} > *Error message:* > {quote} > FAILED: SemanticException Unable to load data to destination table. Error: java.lang.IndexOutOfBoundsException > {quote} > *Stack trace:* > {noformat} > org.apache.hadoop.hive.ql.parse.SemanticException: Unable to load data to destination table. Error: java.lang.IndexOutOfBoundsException > at org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer.ensureFileFormatsMatch(LoadSemanticAnalyzer.java:340) > at org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer.analyzeInternal(LoadSemanticAnalyzer.java:224) > at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:242) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:481) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:317) > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1190) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1285) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1116) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1104) > ... > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)