From issues-return-252584-archive-asf-public=cust-asf.ponee.io@spark.apache.org Thu Apr 30 16:51:17 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 06E6F180676 for ; Thu, 30 Apr 2020 18:51:16 +0200 (CEST) Received: (qmail 57029 invoked by uid 500); 30 Apr 2020 16:51:09 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 56635 invoked by uid 99); 30 Apr 2020 16:51:09 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2020 16:51:09 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AC71DE316C for ; Thu, 30 Apr 2020 16:51:08 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 3945678022A for ; Thu, 30 Apr 2020 16:51:05 +0000 (UTC) Date: Thu, 30 Apr 2020 16:51:05 +0000 (UTC) From: "Apache Spark (Jira)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SPARK-30707) Lead/Lag window function throws AnalysisException without ORDER BY clause MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-30707?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-30707: ------------------------------------ Assignee: Apache Spark > Lead/Lag window function throws AnalysisException without ORDER BY clause > ------------------------------------------------------------------------- > > Key: SPARK-30707 > URL: https://issues.apache.org/jira/browse/SPARK-30707 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 3.1.0 > Reporter: jiaan.geng > Assignee: Apache Spark > Priority: Major > > =C2=A0Lead/Lag window function throws AnalysisException without ORDER BY = clause: > {code:java} > SELECT lead(ten, four + 1) OVER (PARTITION BY four), ten, four > FROM (SELECT * FROM tenk1 WHERE unique2 < 10 ORDER BY four, ten)s > org.apache.spark.sql.AnalysisException > Window function lead(ten#x, (four#x + 1), null) requires window to be ord= ered, please add ORDER BY clause. For example SELECT lead(ten#x, (four#x + = 1), null)(value_expr) OVER (PARTITION BY window_partition ORDER BY window_o= rdering) from table; > {code} > =C2=A0 > Maybe we need fix this issue. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org