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

Navis commented on HIVE-11774:
------------------------------

[~damien.carol] it seemed not. 
{noformat}
descStatement
@init { pushMsg("describe statement", state); }
@after { popMsg(state); }
    :
    (KW_DESCRIBE|KW_DESC)
    (
    (KW_DATABASE|KW_SCHEMA) => (KW_DATABASE|KW_SCHEMA) KW_EXTENDED? 
(dbName=identifier) -> ^(TOK_DESCDATABASE $dbName KW_EXTENDED?)
    |
    (KW_FUNCTION) => KW_FUNCTION KW_EXTENDED? (name=descFuncNames) -> 
^(TOK_DESCFUNCTION $name KW_EXTENDED?)
    |
    (KW_FORMATTED|KW_EXTENDED|KW_PRETTY) => 
((descOptions=KW_FORMATTED|descOptions=KW_EXTENDED|descOptions=KW_PRETTY) 
parttype=partTypeExpr) -> ^(TOK_DESCTABLE $parttype $descOptions)
    |
    parttype=partTypeExpr -> ^(TOK_DESCTABLE $parttype)
    )
    ;
{noformat}

Possibly support KW_MACRO, too. 

> Show macro definition for desc function <macro-name>
> ----------------------------------------------------
>
>                 Key: HIVE-11774
>                 URL: https://issues.apache.org/jira/browse/HIVE-11774
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-11774.1.patch.txt, HIVE-11774.2.patch.txt
>
>
> Currently, desc function shows nothing for macro. It would be helpful if it 
> shows the definition of it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to