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 7DCE81892E for ; Mon, 22 Jun 2015 22:29:01 +0000 (UTC) Received: (qmail 37234 invoked by uid 500); 22 Jun 2015 22:29:01 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 37206 invoked by uid 500); 22 Jun 2015 22:29:01 -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 37196 invoked by uid 99); 22 Jun 2015 22:29:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2015 22:29:01 +0000 Date: Mon, 22 Jun 2015 22:29:01 +0000 (UTC) From: "Abhishek Girish (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-3337) Queries with Window Function DENSE_RANK fail with SchemaChangeException 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-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14596771#comment-14596771 ] Abhishek Girish commented on DRILL-3337: ---------------------------------------- Similarly, function PERCENT_RANK also fails: {code:sql} SELECT c.c_first_name, c.c_last_name, PERCENT_RANK() OVER (PARTITION BY s.ss_customer_sk ORDER BY s.ss_customer_sk) FROM customer c, store_sales s WHERE c.c_customer_sk = s.ss_customer_sk GROUP BY c.c_first_name, c.c_last_name, s.ss_quantity, s.ss_customer_sk ORDER BY 1, 2 LIMIT 20; Error: SYSTEM ERROR: org.apache.drill.exec.exception.SchemaChangeException: Failure while materializing expression. Error in expression at index 0. Error: Missing function implementation: [percent_rank(INT-REQUIRED)]. Full expression: null. Fragment 5:5 [Error Id: 670187a0-9b06-4748-a444-61d5bf20aded on abhi7.qa.lab:31010] (state=,code=0) {code} > Queries with Window Function DENSE_RANK fail with SchemaChangeException > ----------------------------------------------------------------------- > > Key: DRILL-3337 > URL: https://issues.apache.org/jira/browse/DRILL-3337 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Affects Versions: 1.1.0 > Reporter: Abhishek Girish > Assignee: Aman Sinha > Attachments: drillbit.log.txt > > > Example queries which result in exceptions: > DENSE_RANK WF with ORDER BY 1 column and GROUP BY, ORDER BY on the main query > {code:sql} > SELECT DENSE_RANK() OVER (ORDER BY ss.ss_store_sk) FROM store_sales ss GROUP BY ss.ss_store_sk, ss.ss_net_paid_inc_tax ORDER BY 1 LIMIT 20; > Error: SYSTEM ERROR: org.apache.drill.exec.exception.SchemaChangeException: Failure while materializing expression. > Error in expression at index 0. Error: Missing function implementation: [dense_rank(INT-REQUIRED)]. Full expression: null. > Fragment 4:10 > [Error Id: 4b9187db-e770-4e7f-afe4-0d4dfc045088 on abhi6.qa.lab:31010] (state=,code=0) > {code} > DENSE_RANK WF with PARTITION BY 2 columns and ORDER BY 2 column and GROUP BY, ORDER BY on the main query > {code:sql} > SELECT DENSE_RANK() OVER (PARTITION BY s.ss_store_sk, s.ss_customer_sk ORDER BY s.ss_store_sk, s.ss_customer_sk) FROM store_sales s GROUP BY s.ss_store_sk, s.ss_customer_sk, s.ss_quantity ORDER BY 1 LIMIT 20; > Error: SYSTEM ERROR: org.apache.drill.exec.exception.SchemaChangeException: Failure while materializing expression. > Error in expression at index 0. Error: Missing function implementation: [dense_rank(INT-REQUIRED)]. Full expression: null. > Fragment 5:22 > [Error Id: 3ac6e4ce-5bb3-4058-b806-3d0becbbd0d1 on abhi6.qa.lab:31010] (state=,code=0) > {code} > *The queries execute fine on Postgres* -- This message was sent by Atlassian JIRA (v6.3.4#6332)