Browse Source

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

Romain 6 years ago
parent
commit
b204157a73
1 changed files with 2 additions and 1 deletions
  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.describe = HiveServerTTableSchema(self.desc_results, self.desc_schema).cols()
     self._details = None
     self._details = None
     try:
     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:
     except Exception as e:
       LOG.warn('Autocomplete data fetching error: %s' % e)
       LOG.warn('Autocomplete data fetching error: %s' % e)
       self.is_impala_only = False
       self.is_impala_only = False