Explorar o código

HUE-9408 [ui] Column comments are not displayed in Table browser

sreenaths %!s(int64=5) %!d(string=hai) anos
pai
achega
526e74ffae
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      desktop/core/src/desktop/js/catalog/dataCatalogEntry.js

+ 3 - 0
desktop/core/src/desktop/js/catalog/dataCatalogEntry.js

@@ -816,6 +816,9 @@ class DataCatalogEntry {
     if (self.navigatorMeta && (self.getDialect() === 'hive' || self.getDialect() === 'impala')) {
       return self.navigatorMeta.description || self.navigatorMeta.originalDescription || '';
     }
+    if (self.definition && self.definition.comment) {
+      return self.definition.comment;
+    }
     return (self.sourceMeta && self.sourceMeta.comment) || '';
   }