Ver código fonte

HUE-8155 [metastore] Fix issue where all columns are marked as keys

Johan Ahlen 7 anos atrás
pai
commit
c8c58a1c22

+ 1 - 1
desktop/core/src/desktop/templates/ko_components/ko_catalog_entries_table.mako

@@ -232,7 +232,7 @@ from desktop.views import _ko
         self.joinColumns = ko.observableArray();
 
         self.isKey = ko.pureComputed(function () {
-          return self.catalogEntry.isPrimaryKey() || self.catalogEntry.isPartitionKey || self.joinColumns().length;
+          return self.catalogEntry.isPrimaryKey() || self.catalogEntry.isPartitionKey() || self.joinColumns().length;
         });
 
         self.keyText = ko.pureComputed(function () {