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 0FCAA18561 for ; Tue, 5 Jan 2016 02:01:40 +0000 (UTC) Received: (qmail 25218 invoked by uid 500); 5 Jan 2016 02:01:40 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 25188 invoked by uid 500); 5 Jan 2016 02:01:40 -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 25163 invoked by uid 99); 5 Jan 2016 02:01:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2016 02:01:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C87882C14F4 for ; Tue, 5 Jan 2016 02:01:39 +0000 (UTC) Date: Tue, 5 Jan 2016 02:01:39 +0000 (UTC) From: "Johan Gustavsson (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-12664) Bug in reduce deduplication optimization causing ArrayOutOfBoundException 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-12664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Johan Gustavsson updated HIVE-12664: ------------------------------------ Attachment: HIVE-12664.2.patch > Bug in reduce deduplication optimization causing ArrayOutOfBoundException > ------------------------------------------------------------------------- > > Key: HIVE-12664 > URL: https://issues.apache.org/jira/browse/HIVE-12664 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 1.1.1, 1.2.1 > Reporter: Johan Gustavsson > Assignee: Johan Gustavsson > Attachments: HIVE-12664-1.patch, HIVE-12664-2.patch, HIVE-12664.1.patch, HIVE-12664.2.patch, HIVE-12664.patch > > > The optimisation check for reduce deduplication only checks the first child node for join -and the check itself also contains a major bug- causing ArrayOutOfBoundException no matter what. > Sample data table form: > ||time||user||host||path||referer||code||agent||size||method|| > |int|string|string|string|string|bigint|string|bigint|string| > Sample query > {code:sql} > SELECT > t1.host, > COUNT(DISTINCT t1.`date`) AS login_count, > MAX(t2.code) AS code, > unix_timestamp() AS time > FROM ( > SELECT > HOST, > MIN(time) AS DATE > FROM > www_access > WHERE > HOST IS NOT NULL > GROUP BY > HOST > ) t1 > JOIN ( > SELECT > HOST, > MIN(time) AS code > FROM > www_access > WHERE > HOST IS NOT NULL > GROUP BY > HOST > ) t2 > ON t1.host = t2.host > GROUP BY > t1.host > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)