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 42C23D34F for ; Sun, 17 Mar 2013 21:17:15 +0000 (UTC) Received: (qmail 73079 invoked by uid 500); 17 Mar 2013 21:17:14 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 73033 invoked by uid 500); 17 Mar 2013 21:17:14 -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 73024 invoked by uid 500); 17 Mar 2013 21:17:14 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 73020 invoked by uid 99); 17 Mar 2013 21:17:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Mar 2013 21:17:14 +0000 Date: Sun, 17 Mar 2013 21:17:14 +0000 (UTC) From: "Harish Butani (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4192) Use of LEAD in an OVER clauses causes the query to fail 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-4192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13604753#comment-13604753 ] Harish Butani commented on HIVE-4192: ------------------------------------- Yes in our implementation we disallow Window Frames on rank, dense_rank, cume_dist, percent_rank, lead and lag. Didn't make sense to allow a Window Frame on these. This is documented in Jira 4197. Should be fixed/resolved by Jira 4197. > Use of LEAD in an OVER clauses causes the query to fail > ------------------------------------------------------- > > Key: HIVE-4192 > URL: https://issues.apache.org/jira/browse/HIVE-4192 > Project: Hive > Issue Type: Bug > Components: PTF-Windowing > Affects Versions: 0.11.0 > Reporter: Alan Gates > > Running a query like: > {code} > select i, lead(s) over (partition by bin order by d desc > rows between current row and 1 following) > from over100k; > {code} > gives an error: > {code} > FAILED: SemanticException Function lead((TOK_TABLE_OR_COL s)) org.apache.hadoop.hive.ql.parse.WindowingSpec$WindowSpec@13e15f7 as _wcol0 doesn't support windowing > {code} -- 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