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 80CC5F5F9 for ; Wed, 20 Mar 2013 17:55:18 +0000 (UTC) Received: (qmail 87871 invoked by uid 500); 20 Mar 2013 17:55:18 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 87641 invoked by uid 500); 20 Mar 2013 17:55:17 -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 87621 invoked by uid 500); 20 Mar 2013 17:55:17 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 87601 invoked by uid 99); 20 Mar 2013 17:55:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 17:55:17 +0000 Date: Wed, 20 Mar 2013 17:55:17 +0000 (UTC) From: "Alan Gates (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=13607918#comment-13607918 ] Alan Gates commented on HIVE-4192: ---------------------------------- I agree throwing exception at compile time is better than silently dropping the window frame. > 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