From issues-return-184349-apmail-hive-issues-archive=hive.apache.org@hive.apache.org Fri Apr 3 13:50:03 2020 Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id EAB85190C6 for ; Fri, 3 Apr 2020 13:50:02 +0000 (UTC) Received: (qmail 19687 invoked by uid 500); 3 Apr 2020 13:50:02 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 19656 invoked by uid 500); 3 Apr 2020 13:50:02 -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 19630 invoked by uid 99); 3 Apr 2020 13:50:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2020 13:50:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B5202E00B7 for ; Fri, 3 Apr 2020 13:50:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 82EAA78047D for ; Fri, 3 Apr 2020 13:50:00 +0000 (UTC) Date: Fri, 3 Apr 2020 13:50:00 +0000 (UTC) From: "David Mollitor (Jira)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-23128) SHOW CREATE TABLE Creates Incorrect Syntax When Database Specified MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-23128?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] David Mollitor updated HIVE-23128: ---------------------------------- Target Version/s: 4.0.0 > SHOW CREATE TABLE Creates Incorrect Syntax When Database Specified > ------------------------------------------------------------------ > > Key: HIVE-23128 > URL: https://issues.apache.org/jira/browse/HIVE-23128 > Project: Hive > Issue Type: Bug > Affects Versions: 2.4.0, 3.1.2 > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Major > Attachments: HIVE-23128.1.patch, HIVE-23128.2.patch > > > {code:sql} > show create table `sample_07`; > show create table `default`.`sample_07`; > show create table `default.sample_07`; > {code} > {code:none|title=3DResults} > CREATE TABLE `sample_07`(...) > CREATE TABLE `default.sample_07`(...) > CREATE TABLE `default.sample_07`(...); > {code} > All three {{show create table}} statements=C2=A0complete in Hive 2.x and = 3.x and generate {{CREATE TABLE}} statements as show above. The first resul= t is correct because it does not include the database name, however, the su= bsequent two results are invalid: each field must be quoted individually.= =C2=A0 This causes a failure in recent versions of Hive because "SemanticEx= ception Table or database name may not contain dot(.) character." > {quote}If any components of a multiple-part name require quoting, quote t= hem individually rather than quoting the name as a whole. For example, writ= e `my-table`.`my-column`, not `my-table.my-column`. > * [https://dev.mysql.com/doc/refman/8.0/en/identifier-qualifiers.html]{q= uote} -- This message was sent by Atlassian Jira (v8.3.4#803005)