hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lefty Leverenz (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6187) Add test to verify that DESCRIBE TABLE works with quoted table names
Date Fri, 13 Jun 2014 11:03:02 GMT

     [ https://issues.apache.org/jira/browse/HIVE-6187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lefty Leverenz updated HIVE-6187:
---------------------------------

    Labels: TODOC14  (was: )

> Add test to verify that DESCRIBE TABLE works with quoted table names
> --------------------------------------------------------------------
>
>                 Key: HIVE-6187
>                 URL: https://issues.apache.org/jira/browse/HIVE-6187
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Andy Mok
>            Assignee: Carl Steinbach
>              Labels: TODOC14
>             Fix For: 0.14.0
>
>         Attachments: HIVE-6187.1.patch
>
>
> Backticks around tables named after special keywords, such as items, allow us to create,
drop, and alter the table. For example
> {code:sql}
> CREATE TABLE foo.`items` (bar INT);
> DROP TABLE foo.`items`;
> ALTER TABLE `items` RENAME TO `items_`;
> {code}
> However, we cannot call
> {code:sql}
> DESCRIBE foo.`items`;
> DESCRIBE `items`;
> {code}
> The DESCRIBE query does not permit backticks to surround table names. The error returned
is
> {code:sql}
> FAILED: SemanticException [Error 10001]: Table not found `items`
> {code} 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message