[ https://issues.apache.org/jira/browse/HIVE-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250180#comment-13250180 ]
Zhenxiao Luo commented on HIVE-1977: ------------------------------------ currently the following is working: 1. $describe table; 2. $describe table.column; while, these are not working: 3. $describe column; 4. $describe database.table; 5. $describe database.table.column; always errors about the starting element is not a valid Table. Hive should support #3 and #5, since these are standard syntax, by updating Hive.g and related parser/lexer. For #4, a new configuration property may be needed to distinguish #2 with #4. Or, shall we always try matching both #2 and #4 when doing parsing? And error out if and only if neither matches? In this way, no new configuration property needed. This is also related to HIVE-2228. > DESCRIBE TABLE syntax doesn't support specifying a database qualified table > name > -------------------------------------------------------------------------------- > > Key: HIVE-1977 > URL: https://issues.apache.org/jira/browse/HIVE-1977 > Project: Hive > Issue Type: Bug > Components: Database/Schema, Query Processor, SQL > Reporter: Carl Steinbach > Assignee: Zhenxiao Luo > > The syntax for DESCRIBE is broken. It should be: > {code} > DESCRIBE [EXTENDED] [database DOT]table [column] > {code} > but is actually > {code} > DESCRIBE [EXTENDED] table[DOT col_name] > {code} > Ref: http://dev.mysql.com/doc/refman/5.0/en/describe.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira