Эх сурвалжийг харах

HUE-9500 [ui] Comment is not shown when view the table info from table browser first time (asnaik)

Akhil Naik 5 жил өмнө
parent
commit
412bcfd4cb

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

@@ -812,13 +812,13 @@ class DataCatalogEntry {
    */
   getResolvedComment() {
     const self = this;
+    if (self.definition && self.definition.comment) {
+      return self.definition.comment;
+    }
     // TODO: Move to connector attributes
     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) || '';
   }