Explorar o código

HUE-7240 [impala] No available paths to partitioned data

Romain Rigaux %!s(int64=8) %!d(string=hai) anos
pai
achega
6b0c229cd7

+ 2 - 2
apps/metastore/src/metastore/templates/metastore.mako

@@ -213,7 +213,7 @@ ${ components.menubar(is_embeddable) }
           </th>
           <th>${_('Values')}</th>
           <th>${_('Spec')}</th>
-          <th>${_('Browse')}</th>
+          <th data-bind="visible: $root.sourceType() != 'impala'">${_('Browse')}</th>
         </tr>
       </thead>
       <tbody>
@@ -236,7 +236,7 @@ ${ components.menubar(is_embeddable) }
           <!-- /ko -->
         </td>
         <td data-bind="text: partitionSpec"></td>
-        <td>
+        <td data-bind="visible: $root.sourceType() != 'impala'">
           <!-- ko if: IS_HUE_4 -->
             <a data-bind="click: function () { browsePartitionFolder(browseUrl); }" href="javascript:void(0)" title="${_('Browse partition files')}">
               ${_('Files')}

+ 2 - 2
desktop/core/src/desktop/templates/sql_context_popover.mako

@@ -255,7 +255,7 @@ from metadata.conf import has_navigator
           </thead>
           <tbody data-bind="foreach: partition_keys_json">
           <tr>
-            <td data-bind="text: $index()+1"></td>
+            <td data-bind="text: $index() + 1"></td>
             <td><a href="#" data-bind="text: $data, click: function() { huePubSub.publish('context.popover.scroll.to.column', $data); }"></a></td>
           </tr>
           </tbody>
@@ -273,7 +273,7 @@ from metadata.conf import has_navigator
         </thead>
         <tbody data-bind="foreach: partition_values_json">
           <tr>
-            <td data-bind="text: $index()+1"></td>
+            <td data-bind="text: $index() + 1"></td>
             <td><a href="#" data-bind="click: function () { window.open(readUrl, '_blank'); return false; }, text: '[\'' + columns.join('\',\'') + '\']'"></a></td>
             <td data-bind="text: partitionSpec"></td>
             <td>