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 4D061178DB for ; Mon, 16 Mar 2015 03:51:39 +0000 (UTC) Received: (qmail 89798 invoked by uid 500); 16 Mar 2015 03:51:39 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 89767 invoked by uid 500); 16 Mar 2015 03:51:39 -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 89757 invoked by uid 99); 16 Mar 2015 03:51:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2015 03:51:39 +0000 Date: Mon, 16 Mar 2015 03:51:39 +0000 (UTC) From: "Adam Gilmore (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-2361) Column aliases cannot include dots 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-2361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14362700#comment-14362700 ] Adam Gilmore commented on DRILL-2361: ------------------------------------- Sorry - I can create another patch with those extra tests. I'll get onto that. > Column aliases cannot include dots > ---------------------------------- > > Key: DRILL-2361 > URL: https://issues.apache.org/jira/browse/DRILL-2361 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Affects Versions: 0.7.0, 0.8.0 > Reporter: Adam Gilmore > Assignee: Aman Sinha > Priority: Minor > Attachments: DRILL-2361.1.patch.txt > > > The Drill query engine rejects column aliases for aggregates or group by fields where the alias includes a dot. > For example: > {code}select count(*) as `test.field` from cp.`employee.json`;{code} > throws an error with "Field references must be singular names." > Having reviewed the code, I can't quite see a reason for it, and when using FieldReference.getWithQuotedRef instead in AggPrelBase, the issue is alleviated with no visible side effects. > I'm sure there was a reason for this code in FieldReference, but I can't seem to work out why, and it seems entirely reasonable to allow a dot in a column alias. -- This message was sent by Atlassian JIRA (v6.3.4#6332)