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 6A0F71888E for ; Tue, 4 Aug 2015 06:53:06 +0000 (UTC) Received: (qmail 39324 invoked by uid 500); 4 Aug 2015 06:53:06 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 39293 invoked by uid 500); 4 Aug 2015 06:53:06 -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 39283 invoked by uid 99); 4 Aug 2015 06:53:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 06:53:06 +0000 Date: Tue, 4 Aug 2015 06:53:06 +0000 (UTC) From: "Khurram Faraaz (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3601) Integer parameter to LEAD function results in CompileException 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/DRILL-3601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Khurram Faraaz updated DRILL-3601: ---------------------------------- Attachment: drillbit.log > Integer parameter to LEAD function results in CompileException > -------------------------------------------------------------- > > Key: DRILL-3601 > URL: https://issues.apache.org/jira/browse/DRILL-3601 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Flow > Affects Versions: 1.2.0 > Environment: private-branch-with-new-window-functions > Reporter: Khurram Faraaz > Assignee: Chris Westin > Attachments: drillbit.log > > > col0 is of type INTEGER in the parquet file. When col0 is passed as input to LEAD function we see a CompileException. I have attached drillbit.log here. > {code} > 0: jdbc:drill:schema=dfs.tmp> select lead(col0) from `fewRowsAllData.parquet`; > java.lang.RuntimeException: java.sql.SQLException: SYSTEM ERROR: CompileException: Line 95, Column 62: Unknown variable or type "index" > Fragment 0:0 > [Error Id: 0d967bd7-36f6-4c8d-a574-9d67d7b22f7e on centos-01.qa.lab:31010] > at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73) > at sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:87) > at sqlline.TableOutputFormat.print(TableOutputFormat.java:118) > at sqlline.SqlLine.print(SqlLine.java:1583) > at sqlline.Commands.execute(Commands.java:852) > at sqlline.Commands.sql(Commands.java:751) > at sqlline.SqlLine.dispatch(SqlLine.java:738) > at sqlline.SqlLine.begin(SqlLine.java:612) > at sqlline.SqlLine.start(SqlLine.java:366) > at sqlline.SqlLine.main(SqlLine.java:259) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)