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 0B7011016D for ; Wed, 25 Feb 2015 01:18:06 +0000 (UTC) Received: (qmail 93056 invoked by uid 500); 25 Feb 2015 01:18:05 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 92823 invoked by uid 500); 25 Feb 2015 01:18:05 -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 92650 invoked by uid 99); 25 Feb 2015 01:18:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2015 01:18:04 +0000 Date: Wed, 25 Feb 2015 01:18:04 +0000 (UTC) From: "Abhishek Girish (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-2306) Add support for grouping function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Abhishek Girish created DRILL-2306: -------------------------------------- Summary: Add support for grouping function Key: DRILL-2306 URL: https://issues.apache.org/jira/browse/DRILL-2306 Project: Apache Drill Issue Type: Improvement Components: Query Planning & Optimization Affects Versions: 0.8.0 Reporter: Abhishek Girish Assignee: Jinfeng Ni Fix For: Future Add support for grouping function (grouping() returns 1 when column is used for grouping or 0 when column and all derivated values are NULL) The following query fails to parse: SELECT grouping(c_first_name) FROM customer GROUP BY c_first_name LIMIT 1; Reference: TPC-DS queries (27, 36, ...) contain grouping functions -- This message was sent by Atlassian JIRA (v6.3.4#6332)