Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-3798

Can't escape reserved keywords used as table names

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: Parser
    • Labels:
      None

      Description

      hive (some_table)> show tables;
      OK
      ...
      comment
      ...
      Time taken: 0.076 seconds
      hive (some_table)> describe comment;
      FAILED: Parse Error: line 1:0 cannot recognize input near 'describe' 'comment' '<EOF>' in describe statement
      hive (some_table)> describe `comment`;             
      OK
      Table `comment` does not exist	 	 
      Time taken: 0.042 seconds
      

      Describe should honor character escaping.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jghoman Jakob Homan
                Reporter:
                jghoman Jakob Homan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: