From issues-return-178983-archive-asf-public=cust-asf.ponee.io@hive.apache.org Fri Feb 14 06:43:04 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 DCA20180647 for ; Fri, 14 Feb 2020 07:43:03 +0100 (CET) Received: (qmail 9004 invoked by uid 500); 14 Feb 2020 06:43:03 -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 8994 invoked by uid 99); 14 Feb 2020 06:43:03 -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; Fri, 14 Feb 2020 06:43:03 +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 1F600E2DEB for ; Fri, 14 Feb 2020 06:43:01 +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 4B890780445 for ; Fri, 14 Feb 2020 06:43:00 +0000 (UTC) Date: Fri, 14 Feb 2020 06:43:00 +0000 (UTC) From: "mahesh kumar behera (Jira)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-22856) Hive LLAP LlapArrowBatchRecordReader skipping remaining batches when ArrowStreamReader returns a 0 length batch. 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-22856?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] mahesh kumar behera updated HIVE-22856: --------------------------------------- Description:=20 LlapArrowBatchRecordReader returns false when the=C2=A0ArrowStreamReader lo= adNextBatch returns column vector with 0 length. But we should keep reading= data until=C2=A0loadNextBatch returns false. Some batch may return column = vector of length 0, but we should ignore and wait for the next batch. The batch size of 0 is possible in the case when a split read by ORC reader= has all deleted or aborted data. In that case=C2=A0VectorizedOrcAcidRowBat= chReader sends a batch size of 0. With 0 batch size, VectorFileSinkArrowOpe= rator creates a batch of just metadata and set the value count to 0. This k= ind of batch should be ignore by the client and should wait for next batch. was:LlapArrowBatchRecordReader returns false when the=C2=A0ArrowStreamRea= der loadNextBatch returns column vector with 0 length. But we should keep r= eading data until=C2=A0loadNextBatch returns false. Some batch may return c= olumn vector of length 0, but we should ignore and wait for the next batch. > Hive LLAP LlapArrowBatchRecordReader skipping remaining batches when Arro= wStreamReader returns a 0 length batch. > -------------------------------------------------------------------------= --------------------------------------- > > Key: HIVE-22856 > URL: https://issues.apache.org/jira/browse/HIVE-22856 > Project: Hive > Issue Type: Bug > Reporter: mahesh kumar behera > Assignee: mahesh kumar behera > Priority: Major > Attachments: HIVE-22856.01.patch, HIVE-22856.02.patch > > > LlapArrowBatchRecordReader returns false when the=C2=A0ArrowStreamReader = loadNextBatch returns column vector with 0 length. But we should keep readi= ng data until=C2=A0loadNextBatch returns false. Some batch may return colum= n vector of length 0, but we should ignore and wait for the next batch. > The batch size of 0 is possible in the case when a split read by ORC read= er has all deleted or aborted data. In that case=C2=A0VectorizedOrcAcidRowB= atchReader sends a batch size of 0. With 0 batch size, VectorFileSinkArrowO= perator creates a batch of just metadata and set the value count to 0. This= kind of batch should be ignore by the client and should wait for next batc= h. -- This message was sent by Atlassian Jira (v8.3.4#803005)