[ https://issues.apache.org/jira/browse/HIVE-2525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135227#comment-13135227 ]
Namit Jain commented on HIVE-2525: ---------------------------------- hive> explain dfs -ls <PATH>; FAILED: Parse Error: line 1:8 cannot recognize input near 'dfs' '-' 'ls' in statement The above error is a legitimate parse error. If we want to fix it with a better error message, we should catch the parser error and throw a beter message (the way you have put it in CliDriver). The approach you have taken is difficult to maintain in the long run. > Introduce proper error messages, when explain fails on commands that > otherwise could be succesful (commands that are not analyzed by Semantic > Analyzer) > ------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HIVE-2525 > URL: https://issues.apache.org/jira/browse/HIVE-2525 > Project: Hive > Issue Type: Improvement > Reporter: Robert Surówka > Assignee: Robert Surówka > Priority: Trivial > Attachments: HIVE-2525.1.patch > > -- 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