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 C89E11789D for ; Fri, 27 Mar 2015 00:04:00 +0000 (UTC) Received: (qmail 47888 invoked by uid 500); 27 Mar 2015 00:03:54 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 47769 invoked by uid 500); 27 Mar 2015 00:03:54 -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 47641 invoked by uid 99); 27 Mar 2015 00:03:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 00:03:54 +0000 Date: Fri, 27 Mar 2015 00:03:54 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-2589) Creating a view with duplicate column names should fail or give a warning to the user MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Rahul Challapalli created DRILL-2589: ---------------------------------------- Summary: Creating a view with duplicate column names should fail or give a warning to the user Key: DRILL-2589 URL: https://issues.apache.org/jira/browse/DRILL-2589 Project: Apache Drill Issue Type: Bug Components: Metadata Reporter: Rahul Challapalli Assignee: Steven Phillips git.commit.id.abbrev=4d398ed View DDL : {code} create view v1 as select pageRank, pageRank from `/dfs/parquet/rankings`; {code} The above view creation succeeds and drill silently renames the columns. Postgres does not allow this behavior. Below is the description of the view {code} describe v1; +-------------+------------+-------------+ | COLUMN_NAME | DATA_TYPE | IS_NULLABLE | +-------------+------------+-------------+ | pageRank | ANY | NO | | pageRank0 | ANY | NO | +-------------+------------+-------------+ {code} In most cases the reason someone would create such a view is by mistake. So we should either not allow it or give a warning to the user in such situations -- This message was sent by Atlassian JIRA (v6.3.4#6332)