소스 검색

HUE-9080 [editor] PK icons are now missing in Kudu tables

Romain 6 년 전
부모
커밋
b204157a73
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      apps/beeswax/src/beeswax/server/hive_server2_lib.py

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

@@ -1123,7 +1123,8 @@ class HiveServerTableCompatible(HiveServerTable):
     self.describe = HiveServerTTableSchema(self.desc_results, self.desc_schema).cols()
     self._details = None
     try:
-      self.is_impala_only = 'org.apache.kudu.mapreduce.KuduTableOutputFormat' in str(hive_table.properties)
+      self.is_impala_only = 'org.apache.hadoop.hive.kudu.KuduSerDe' in str(hive_table.properties) or \
+        'org.apache.kudu.mapreduce.KuduTableOutputFormat' in str(hive_table.properties) # Deprecated since CDP
     except Exception as e:
       LOG.warn('Autocomplete data fetching error: %s' % e)
       self.is_impala_only = False