From issues-return-171691-archive-asf-public=cust-asf.ponee.io@hive.apache.org Sun Nov 10 22:33:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id A81FB180661 for ; Sun, 10 Nov 2019 23:33:02 +0100 (CET) Received: (qmail 50494 invoked by uid 500); 10 Nov 2019 22:33:02 -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 50483 invoked by uid 99); 10 Nov 2019 22:33:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Nov 2019 22:33:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CF2EDE00D2 for ; Sun, 10 Nov 2019 22:33:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 2D69C7804E1 for ; Sun, 10 Nov 2019 22:33:00 +0000 (UTC) Date: Sun, 10 Nov 2019 22:33:00 +0000 (UTC) From: "Laszlo Pinter (Jira)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-22473) Avoid reading table as ACID when table name is starting with "delta", but table is not transactional MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-22473?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Pinter updated HIVE-22473: --------------------------------- Attachment: HIVE-22473.04.patch > Avoid reading table as ACID when table name is starting with "delta", but= table is not transactional > -------------------------------------------------------------------------= --------------------------- > > Key: HIVE-22473 > URL: https://issues.apache.org/jira/browse/HIVE-22473 > Project: Hive > Issue Type: Bug > Components: Hive > Reporter: Laszlo Pinter > Assignee: Laszlo Pinter > Priority: Major > Fix For: 4.0.0 > > Attachments: HIVE-22473.01.patch, HIVE-22473.02.patch, HIVE-22473= .03.patch, HIVE-22473.04.patch > > > {code:sql} > create table delta_result (a int) stored as orc tblproperties('transactio= nal'=3D'false'); > insert into delta_result select 1; > select * from delta_result; > {code} > =C2=A0The above query will result in the following exception: > 2019-11-08T13:49:05,780=C2=A0 WARN [HiveServer2-Handler-Pool: Thread-7906= ] thrift.ThriftCLIService: Error fetching results:2019-11-08T13:49:05,780= =C2=A0 WARN [HiveServer2-Handler-Pool: Thread-7906] thrift.ThriftCLIService= : Error fetching results:org.apache.hive.service.cli.HiveSQLException: java= .io.IOException: java.lang.RuntimeException: ORC split generation failed wi= th exception: java.lang.StringIndexOutOfBoundsException: String index out o= f range: -1 at org.apache.hive.service.cli.operation.SQLOperation.getNextRo= wSet(SQLOperation.java:481) ~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHO= T] at org.apache.hive.service.cli.operation.OperationManager.getOperationNe= xtRowSet(OperationManager.java:331) ~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0= -SNAPSHOT] at org.apache.hive.service.cli.session.HiveSessionImpl.fetchResu= lts(HiveSessionImpl.java:946) ~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPS= HOT] at org.apache.hive.service.cli.CLIService.fetchResults(CLIService.java= :567) ~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.hive.= service.cli.thrift.ThriftCLIService.FetchResults(ThriftCLIService.java:801)= ~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.hive.servi= ce.rpc.thrift.TCLIService$Processor$FetchResults.getResult(TCLIService.java= :1837) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.hive.se= rvice.rpc.thrift.TCLIService$Processor$FetchResults.getResult(TCLIService.j= ava:1822) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.thri= ft.ProcessFunction.process(ProcessFunction.java:39) ~[hive-exec-4.0.0-SNAPS= HOT.jar:4.0.0-SNAPSHOT] at org.apache.thrift.TBaseProcessor.process(TBasePr= ocessor.java:39) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apac= he.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.= java:56) ~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.th= rift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)= ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at java.util.concurrent.Thr= eadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_211] at j= ava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6= 24) ~[?:1.8.0_211] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]Ca= used by: java.io.IOException: java.lang.RuntimeException: ORC split generat= ion failed with exception: java.lang.StringIndexOutOfBoundsException: Strin= g index out of range: -1 at org.apache.hadoop.hive.ql.exec.FetchOperator.ge= tNextRow(FetchOperator.java:638) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPS= HOT] at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.= java:545) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.hado= op.hive.ql.exec.FetchTask.fetch(FetchTask.java:151) ~[hive-exec-4.0.0-SNAPS= HOT.jar:4.0.0-SNAPSHOT] at org.apache.hadoop.hive.ql.Driver.getResults(Driv= er.java:2142) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.= hadoop.hive.ql.reexec.ReExecDriver.getResults(ReExecDriver.java:241) ~[hive= -exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.hive.service.cli.ope= ration.SQLOperation.getNextRowSet(SQLOperation.java:476) ~[hive-service-4.0= .0-SNAPSHOT.jar:4.0.0-SNAPSHOT] ... 13 moreCaused by: java.lang.RuntimeExce= ption: ORC split generation failed with exception: java.lang.StringIndexOut= OfBoundsException: String index out of range: -1 at org.apache.hadoop.hive.= ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1929) ~[hiv= e-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.hadoop.hive.ql.io.o= rc.OrcInputFormat.getSplits(OrcInputFormat.java:2016) ~[hive-exec-4.0.0-SNA= PSHOT.jar:4.0.0-SNAPSHOT] at org.apache.hadoop.hive.ql.exec.FetchOperator.g= enerateWrappedSplits(FetchOperator.java:461) ~[hive-exec-4.0.0-SNAPSHOT.jar= :4.0.0-SNAPSHOT] at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSpl= its(FetchOperator.java:430) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] = at org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperat= or.java:336) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.h= adoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:576) ~[hive-= exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.hadoop.hive.ql.exec.F= etchOperator.pushRow(FetchOperator.java:545) ~[hive-exec-4.0.0-SNAPSHOT.jar= :4.0.0-SNAPSHOT] at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTas= k.java:151) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] at org.apache.ha= doop.hive.ql.Driver.getResults(Driver.java:2142) ~[hive-exec-4.0.0-SNAPSHOT= .jar:4.0.0-SNAPSHOT] at org.apache.hadoop.hive.ql.reexec.ReExecDriver.getRe= sults(ReExecDriver.java:241) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]= at org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOpe= ration.java:476) ~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] -- This message was sent by Atlassian Jira (v8.3.4#803005)