Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 313EB113C0 for ; Sat, 16 Aug 2014 01:12:19 +0000 (UTC) Received: (qmail 54737 invoked by uid 500); 16 Aug 2014 01:12:18 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 54655 invoked by uid 500); 16 Aug 2014 01:12:18 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 54291 invoked by uid 500); 16 Aug 2014 01:12:18 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 54286 invoked by uid 99); 16 Aug 2014 01:12:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Aug 2014 01:12:18 +0000 Date: Sat, 16 Aug 2014 01:12:18 +0000 (UTC) From: "Harish Butani (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7744) In Windowing Streaming mode Avg and Sum give incorrect results when Wdw size is same as partition size 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-7744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Harish Butani updated HIVE-7744: -------------------------------- Attachment: HIVE-7744.1.patch > In Windowing Streaming mode Avg and Sum give incorrect results when Wdw size is same as partition size > ------------------------------------------------------------------------------------------------------ > > Key: HIVE-7744 > URL: https://issues.apache.org/jira/browse/HIVE-7744 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Harish Butani > Assignee: Harish Butani > Attachments: HIVE-7744.1.patch > > > For e.g. following query: > {code} > select p_retailprice, avg(p_retailprice) over (partition by p_mfgr order by p_name rows between current row and 6 following), > sum(p_retailprice) over (partition by p_mfgr order by p_name rows between current row and 6 following) > from part > where p_mfgr='Manufacturer#1' > {code} > returns > {code} > 1173.15 1458.2883333333336 8749.730000000001 > 1173.15 1458.2883333333336 8749.730000000001 > 1753.76 1458.2883333333336 8749.730000000001 > 1602.59 1458.2883333333336 8749.730000000001 > 1414.42 1458.2883333333336 8749.730000000001 > 1632.66 1458.2883333333336 8749.730000000001 > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)