hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Mok (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-6187) Cannot use backticks around table name when using DESCRIBE query
Date Fri, 21 Feb 2014 06:35:19 GMT

    [ https://issues.apache.org/jira/browse/HIVE-6187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13908026#comment-13908026
] 

Andy Mok commented on HIVE-6187:
--------------------------------

Weird. The Hive we're using is provided in CDH 4.5.0-1.cdh4.5.0.p0.30 from Cloudera.

> Cannot use backticks around table name when using DESCRIBE query
> ----------------------------------------------------------------
>
>                 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
>
> 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.1.5#6160)

Mime
View raw message