فهرست منبع

HUE-7820 [metastore] Skeleton call to fetch a batch of columns with metadata comment of a table

Romain Rigaux 8 سال پیش
والد
کامیت
cf1ee36
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      apps/metastore/src/metastore/static/metastore/js/metastore.model.js

+ 9 - 0
apps/metastore/src/metastore/static/metastore/js/metastore.model.js

@@ -511,6 +511,15 @@ var MetastoreTable = (function () {
               table: self
             })
           }));
+/* Get a batch of 500 columns with comments
+          self.apiHelper.navSearch({
+            query: 'parentPath:"/' + self.database.name + '/' + self.name + '" AND type:FIELD AND description:[* TO *]',
+            limit: 500
+          }).done(function (apps) {
+		    console.log(apps);
+		    // For each col update comment
+		  });
+*/
           self.favouriteColumns(self.columns().slice(0, 5));
         },
         errorCallback: function () {