Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 98536200C6D for ; Sun, 7 May 2017 08:37:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 96DE6160BA6; Sun, 7 May 2017 06:37:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DE980160BB1 for ; Sun, 7 May 2017 08:37:09 +0200 (CEST) Received: (qmail 20616 invoked by uid 500); 7 May 2017 06:37:09 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 20607 invoked by uid 99); 7 May 2017 06:37:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 May 2017 06:37:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A065DC11C7 for ; Sun, 7 May 2017 06:37:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vFQTWNbLO3lq for ; Sun, 7 May 2017 06:37:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 022735FCB9 for ; Sun, 7 May 2017 06:37:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5FD23E07D6 for ; Sun, 7 May 2017 06:37:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4B9CA21DF7 for ; Sun, 7 May 2017 06:37:04 +0000 (UTC) Date: Sun, 7 May 2017 06:37:04 +0000 (UTC) From: "Lefty Leverenz (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10120) Disallow create table with dot/colon in column name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 07 May 2017 06:37:10 -0000 [ https://issues.apache.org/jira/browse/HIVE-10120?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1599= 9703#comment-15999703 ]=20 Lefty Leverenz commented on HIVE-10120: --------------------------------------- Thanks for offering to do the documentation, [~dmarkovitz]. It's long over= due. > Disallow create table with dot/colon in column name > --------------------------------------------------- > > Key: HIVE-10120 > URL: https://issues.apache.org/jira/browse/HIVE-10120 > Project: Hive > Issue Type: Improvement > Components: Parser > Reporter: Pengcheng Xiong > Assignee: Pengcheng Xiong > Labels: TODOC1.2 > Fix For: 1.2.0 > > Attachments: HIVE-10120.01.patch, HIVE-10120.02.patch > > > Since we don't allow users to query column names with dot in the middle s= uch as emp.no, don't allow users to create tables with such columns that ca= nnot be queried. Fix the documentation to reflect this fix. > Here is an example. Consider this table: > {code} > CREATE TABLE a (`emp.no` string); > select `emp.no` from a; fails with this message: > FAILED: RuntimeException java.lang.RuntimeException: cannot find field em= p from [0:emp.no] > {code} > The hive documentation needs to be fixed: > {code} > (https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL) se= ems to indicate that any Unicode character can go between the backticks in= the select statement, but it doesn=E2=80=99t like the dot/colon or even se= lect * when there is a column that has a dot/colon.=20 > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)