Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DA22118260 for ; Wed, 24 Feb 2016 17:13:32 +0000 (UTC) Received: (qmail 57193 invoked by uid 500); 24 Feb 2016 17:13:18 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 56993 invoked by uid 500); 24 Feb 2016 17:13:18 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 56969 invoked by uid 99); 24 Feb 2016 17:13:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2016 17:13:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2A4E52C1F58 for ; Wed, 24 Feb 2016 17:13:18 +0000 (UTC) Date: Wed, 24 Feb 2016 17:13:18 +0000 (UTC) From: "Khurram Faraaz (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-4432) Update error message to include all unsupported functions when frame clause is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Khurram Faraaz created DRILL-4432: ------------------------------------- Summary: Update error message to include all unsupported functions when frame clause is used Key: DRILL-4432 URL: https://issues.apache.org/jira/browse/DRILL-4432 Project: Apache Drill Issue Type: Bug Components: SQL Parser Affects Versions: 1.6.0 Reporter: Khurram Faraaz Priority: Minor We need to update the error message to include LEAD, LAG, NTILE, and ranking functions, right now we only say ROW/RANGE is not allowed with RANK, DENSE_RANK or ROW_NUMBER functions, when frame clause is used in the window definition of any of these window functions. Another typo that needs fix in error message, it is not ROW/RANGE, it should be ROWS/RANGE (rows not row) An example of current error message that we see. {noformat} 0: jdbc:drill:schema=dfs.tmp> select LEAD(columns[3]) OVER(PARTITION BY CAST(columns[0] as integer) ORDER BY cast(columns[0] as integer) ROWS UNBOUNDED PRECEDING) from dfs.tmp.`t_alltype.csv`; Error: VALIDATION ERROR: From line 1, column 108 to line 1, column 111: ROW/RANGE not allowed with RANK, DENSE_RANK or ROW_NUMBER functions [Error Id: 98565028-bfd8-4f57-acdb-5235195d3d6d on centos-01.qa.lab:31010] (state=,code=0) {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)