Browse Source

[HUE-2739] [metastore] Autocomplete with databases/tables with built in names fails

Alex Breshears 10 years ago
parent
commit
36d71c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/beeswax/src/beeswax/server/hive_server2_lib.py

+ 1 - 1
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -592,7 +592,7 @@ class HiveServerClient:
     table_results, table_schema = self.fetch_result(res.operationHandle, orientation=TFetchOrientation.FETCH_NEXT)
     self.close_operation(res.operationHandle)
 
-    query = 'DESCRIBE FORMATTED %s.%s' % (database, table_name)
+    query = 'DESCRIBE FORMATTED `%s`.`%s`' % (database, table_name)
     (desc_results, desc_schema), operation_handle = self.execute_statement(query, max_rows=5000, orientation=TFetchOrientation.FETCH_NEXT)
     self.close_operation(operation_handle)