소스 검색

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

sreenaths 5 년 전
부모
커밋
526e74ffae
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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) || '';
   }