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

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

    Details

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

      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: