Sfoglia il codice sorgente

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

Romain 6 anni fa
parent
commit
b204157a73
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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