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

Can't escape reserved keywords used as table names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • Parser
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: