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

Add test to verify that DESCRIBE TABLE works with quoted table names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.14.0
    • None

    Description

      Backticks around tables named after special keywords, such as items, allow us to create, drop, and alter the table. For example

      CREATE TABLE foo.`items` (bar INT);
      DROP TABLE foo.`items`;
      ALTER TABLE `items` RENAME TO `items_`;
      

      However, we cannot call

      DESCRIBE foo.`items`;
      DESCRIBE `items`;
      

      The DESCRIBE query does not permit backticks to surround table names. The error returned is

      FAILED: SemanticException [Error 10001]: Table not found `items`
      

      Attachments

        1. HIVE-6187.1.patch
          9 kB
          Carl Steinbach

        Issue Links

          Activity

            People

              cwsteinbach Carl Steinbach
              amok Andy Mok
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: