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 3D170F5BC for ; Tue, 23 Apr 2013 05:27:22 +0000 (UTC) Received: (qmail 81316 invoked by uid 500); 23 Apr 2013 05:27:21 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 80847 invoked by uid 500); 23 Apr 2013 05:27: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 80284 invoked by uid 500); 23 Apr 2013 05:27:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 80230 invoked by uid 99); 23 Apr 2013 05:27:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2013 05:27:15 +0000 Date: Tue, 23 Apr 2013 05:27:15 +0000 (UTC) From: "Harish Butani (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4394) test leadlag.q fails 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-4394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13638798#comment-13638798 ] Harish Butani commented on HIVE-4394: ------------------------------------- Previously we used to return the first/last value in the window if the evaluation of lag/lead amounted to an index that crossed the boundary. Now we return the default value. Since in this e.g. we don't have a default value, we return null. Also the way we interpret this query maybe different from Postgres. We treat the lag function as a UDF when it appears as an argument of a UDAF. So we do the sum in one pass. As far as I know this concept of lead/lag udfs is unique to us. Is Postgres allowing for UDAFs to be arguments of other UDAFs. We don't support this. > test leadlag.q fails > -------------------- > > Key: HIVE-4394 > URL: https://issues.apache.org/jira/browse/HIVE-4394 > Project: Hive > Issue Type: Bug > Components: PTF-Windowing > Reporter: Namit Jain > > ant test -Dtestcase=TestCliDriver -Dqfile=leadlag.q fails. > cc [~rhbutani] -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira