소스 검색

Merge pull request #186 from t3hi3x/master

[HUE-2739] [metastore] Autocomplete with databases/tables with built …
Romain Rigaux 10 년 전
부모
커밋
93a8882
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)