From issues-return-193605-archive-asf-public=cust-asf.ponee.io@hive.apache.org Tue Jun 16 09:52:03 2020 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 BC232180661 for ; Tue, 16 Jun 2020 11:52:02 +0200 (CEST) Received: (qmail 74535 invoked by uid 500); 16 Jun 2020 09:52: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 74425 invoked by uid 99); 16 Jun 2020 09:52:01 -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; Tue, 16 Jun 2020 09:52:01 +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 E76A741BEE for ; Tue, 16 Jun 2020 09:52: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 18F357804AB for ; Tue, 16 Jun 2020 09:52:00 +0000 (UTC) Date: Tue, 16 Jun 2020 09:52:00 +0000 (UTC) From: =?utf-8?Q?=E8=8C=83=E5=AE=9C=E8=87=BB_=28Jira=29?= To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-23688) Vectorization: IndexArrayOutOfBoundsException For map type column which includes null value 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-23688?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] =E8=8C=83=E5=AE=9C=E8=87=BB updated HIVE-23688: ----------------------- Attachment: HIVE-23688.patch Fix Version/s: 3.0.0 4.0.0 Status: Patch Available (was: Open) > Vectorization: IndexArrayOutOfBoundsException For map type column which i= ncludes null value > -------------------------------------------------------------------------= ------------------ > > Key: HIVE-23688 > URL: https://issues.apache.org/jira/browse/HIVE-23688 > Project: Hive > Issue Type: Bug > Components: Parquet, storage-api, Vectorization > Affects Versions: All Versions > Reporter: =E8=8C=83=E5=AE=9C=E8=87=BB > Assignee: =E8=8C=83=E5=AE=9C=E8=87=BB > Priority: Critical > Labels: pull-request-available > Fix For: 4.0.0, 3.0.0 > > Attachments: HIVE-23688.patch > > Time Spent: 10m > Remaining Estimate: 0h > > {color:#de350b}start{color} and {color:#de350b}length{color} are empty ar= rays in=C2=A0MapColumnVector.values(BytesColumnVector) when values in map c= ontain {color:#de350b}null{color} > reproduce in master branch: > {code:java} > set=C2=A0hive.vectorized.execution.enabled=3Dtrue;=C2=A0 > CREATE=C2=A0TABLE=C2=A0parquet_map_type (id=C2=A0int,stringMap map)=20 > stored=C2=A0as=C2=A0parquet;=C2=A0 > insert=C2=A0overwrite=C2=A0table=C2=A0parquet_map_typeSELECT=C2=A01, MAP(= 'k1',=C2=A0null,=C2=A0'k2',=C2=A0'bar');=C2=A0 > select=C2=A0id, stringMap['k1']=C2=A0from=C2=A0parquet_map_type=C2=A0grou= p=C2=A0by=C2=A01,2; > {code} > query explain: > {code:java} > Stage-0 > Fetch Operator > limit:-1 > Stage-1 > Reducer 2 vectorized > File Output Operator [FS_12] > Group By Operator [GBY_11] (rows=3D5 width=3D2) > Output:["_col0","_col1"],keys:KEY._col0, KEY._col1 > <-Map 1 [SIMPLE_EDGE] vectorized > SHUFFLE [RS_10] > PartitionCols:_col0, _col1 > Group By Operator [GBY_9] (rows=3D10 width=3D2) > Output:["_col0","_col1"],keys:_col0, _col1 > Select Operator [SEL_8] (rows=3D10 width=3D2) > Output:["_col0","_col1"] > TableScan [TS_0] (rows=3D10 width=3D2) > temp@parquet_map_type_fyz,parquet_map_type_fyz,Tbl:COMP= LETE,Col:NONE,Output:["id","stringmap"] > {code} > runtime error: > {code:java} > Vertex failed, vertexName=3DMap 1, vertexId=3Dvertex_1592040015150_0001_3= _00, diagnostics=3D[Task failed, taskId=3Dtask_1592040015150_0001_3_00_0000= 00, diagnostics=3D[TaskAttempt 0 failed, info=3D[Error: Error while running= task ( failure ) : attempt_1592040015150_0001_3_00_000000_0:java.lang.Runt= imeException: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadat= a.HiveException: Hive Runtime Error while processing row=20 > =09at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunPro= cessor(TezProcessor.java:296) > =09at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.ja= va:250) > =09at org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOP= rocessorRuntimeTask.java:374) > =09at org.apache.tez.runtime.task.TaskRunner2Callable$1.run(TaskRunner2Ca= llable.java:73) > =09at org.apache.tez.runtime.task.TaskRunner2Callable$1.run(TaskRunner2Ca= llable.java:61) > =09at java.security.AccessController.doPrivileged(Native Method) > =09at javax.security.auth.Subject.doAs(Subject.java:422) > =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInfor= mation.java:1682) > =09at org.apache.tez.runtime.task.TaskRunner2Callable.callInternal(TaskRu= nner2Callable.java:61) > =09at org.apache.tez.runtime.task.TaskRunner2Callable.callInternal(TaskRu= nner2Callable.java:37) > =09at org.apache.tez.common.CallableWithNdc.call(CallableWithNdc.java:36) > =09at com.google.common.util.concurrent.TrustedListenableFutureTask$Trust= edFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java= :108) > =09at com.google.common.util.concurrent.InterruptibleTask.run(Interruptib= leTask.java:41) > =09at com.google.common.util.concurrent.TrustedListenableFutureTask.run(T= rustedListenableFutureTask.java:77) > =09at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecuto= r.java:1142) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:617) > =09at java.lang.Thread.run(Thread.java:748) > Caused by: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata= .HiveException: Hive Runtime Error while processing row=20 > =09at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.processRow(MapRe= cordSource.java:101) > =09at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.pushRecord(MapRe= cordSource.java:76) > =09at org.apache.hadoop.hive.ql.exec.tez.MapRecordProcessor.run(MapRecord= Processor.java:403) > =09at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunPro= cessor(TezProcessor.java:267) > =09... 16 more > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime= Error while processing row=20 > =09at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.process(Vec= torMapOperator.java:970) > =09at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.processRow(MapRe= cordSource.java:92) > =09... 19 more > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Error evalua= ting id > =09at org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator.process(= VectorSelectOperator.java:149) > =09at org.apache.hadoop.hive.ql.exec.Operator.vectorForward(Operator.java= :918) > =09at org.apache.hadoop.hive.ql.exec.TableScanOperator.process(TableScanO= perator.java:172) > =09at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.deliverVect= orizedRowBatch(VectorMapOperator.java:809) > =09at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.process(Vec= torMapOperator.java:842) > =09... 20 more > Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 > =09at org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.setElement(= BytesColumnVector.java:506) > =09at org.apache.hadoop.hive.ql.exec.vector.expressions.VectorUDFMapIndex= BaseScalar.evaluate(VectorUDFMapIndexBaseScalar.java:83) > =09at org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator.process(= VectorSelectOperator.java:146) > =09... 24 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)