|
@@ -229,12 +229,6 @@ ${ components.menubar(is_embeddable) }
|
|
|
<h4>${ _('Properties') } <i data-bind="visible: $parent.loadingDetails()" class="fa fa-spinner fa-spin" style="display: none;"></i></h4>
|
|
<h4>${ _('Properties') } <i data-bind="visible: $parent.loadingDetails()" class="fa fa-spinner fa-spin" style="display: none;"></i></h4>
|
|
|
<div class="row-fluid">
|
|
<div class="row-fluid">
|
|
|
<div class="metastore-property">
|
|
<div class="metastore-property">
|
|
|
- <!-- ko if: details.properties.table_type == 'MANAGED_TABLE' -->
|
|
|
|
|
- ${_('Managed')}
|
|
|
|
|
- <!-- /ko -->
|
|
|
|
|
- <!-- ko if: details.properties.table_type == 'EXTERNAL_TABLE' -->
|
|
|
|
|
- ${_('External')}
|
|
|
|
|
- <!-- /ko -->
|
|
|
|
|
<!-- ko if: is_view -->
|
|
<!-- ko if: is_view -->
|
|
|
${ _('View') }
|
|
${ _('View') }
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
@@ -247,6 +241,29 @@ ${ components.menubar(is_embeddable) }
|
|
|
${ _('Table') }
|
|
${ _('Table') }
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- ko ifnot: is_view -->
|
|
|
|
|
+ <div class="metastore-property">
|
|
|
|
|
+ <!-- ko if: details.properties.table_type == 'MANAGED_TABLE' -->
|
|
|
|
|
+ ${_('Managed')}
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ <!-- ko if: details.properties.table_type == 'EXTERNAL_TABLE' -->
|
|
|
|
|
+ ${_('External')}
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ ${_('and stored in')}
|
|
|
|
|
+ <!-- ko if: details.properties.format === 'kudu' -->
|
|
|
|
|
+ <div>${_('Kudu')}</div>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ <!-- ko if: details.properties.format !== 'kudu' -->
|
|
|
|
|
+ <div>
|
|
|
|
|
+ % if IS_EMBEDDED.get():
|
|
|
|
|
+ <span data-bind="attr: {'title': path_location}">${_('Location')}</span>
|
|
|
|
|
+ % else:
|
|
|
|
|
+ <a data-bind="hueLink: hdfs_link" title="${_('Open data location')}">${_('Location')}</a>
|
|
|
|
|
+ % endif
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
<div class="metastore-property">
|
|
<div class="metastore-property">
|
|
|
${ _('Created by') }
|
|
${ _('Created by') }
|
|
|
<span data-bind="text: details.properties.owner"></span>
|
|
<span data-bind="text: details.properties.owner"></span>
|
|
@@ -274,56 +291,37 @@ ${ components.menubar(is_embeddable) }
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
</h4>
|
|
</h4>
|
|
|
<div class="row-fluid">
|
|
<div class="row-fluid">
|
|
|
- <div class="metastore-property">
|
|
|
|
|
- <div>${ _('Storage') }</div>
|
|
|
|
|
- <!-- ko if: details.properties.format === 'kudu' -->
|
|
|
|
|
- <div>${_('Kudu')}</div>
|
|
|
|
|
- <!-- /ko -->
|
|
|
|
|
- <!-- ko if: details.properties.format !== 'kudu' -->
|
|
|
|
|
- <div>
|
|
|
|
|
- % if IS_EMBEDDED.get():
|
|
|
|
|
- <span data-bind="attr: {'title': path_location}">${_('Location')}</span>
|
|
|
|
|
- % else:
|
|
|
|
|
- <a data-bind="hueLink: hdfs_link" title="${_('Open data location')}">${_('Location')}</a>
|
|
|
|
|
- % endif
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- /ko -->
|
|
|
|
|
- </div>
|
|
|
|
|
<!-- ko with: $parent.tableStats -->
|
|
<!-- ko with: $parent.tableStats -->
|
|
|
- <!-- ko if: typeof transient_lastDdlTime !== 'undefined' -->
|
|
|
|
|
- <div class="metastore-property">
|
|
|
|
|
- <div>${ _('Last data update') }</div>
|
|
|
|
|
- <div data-bind="text: localeFormat(transient_lastDdlTime * 1000)"></div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- /ko -->
|
|
|
|
|
- <!-- ko if: typeof last_modified_time !== 'undefined' -->
|
|
|
|
|
- <div class="metastore-property">
|
|
|
|
|
- <div>${ _('Last DDL modified time') }</div>
|
|
|
|
|
- <div data-bind="text: localeFormat(last_modified_time*1000)"></div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- /ko -->
|
|
|
|
|
- <!-- ko if: typeof last_modified_by !== 'undefined' -->
|
|
|
|
|
- <div class="metastore-property">
|
|
|
|
|
- <div>${ _('Last DDL modified by') }</div>
|
|
|
|
|
- <div data-bind="text: last_modified_by"></div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- /ko -->
|
|
|
|
|
<!-- ko if: typeof numFiles !== 'undefined' && typeof last_modified_by === 'undefined' -->
|
|
<!-- ko if: typeof numFiles !== 'undefined' && typeof last_modified_by === 'undefined' -->
|
|
|
- <div class="metastore-property">
|
|
|
|
|
|
|
+ <span class="metastore-property">
|
|
|
<div>${ _('Files') }</div>
|
|
<div>${ _('Files') }</div>
|
|
|
<div data-bind="text: numFiles"></div>
|
|
<div data-bind="text: numFiles"></div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </span>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
<!-- ko if: typeof numRows !== 'undefined' -->
|
|
<!-- ko if: typeof numRows !== 'undefined' -->
|
|
|
- <div class="metastore-property">
|
|
|
|
|
|
|
+ <span class="metastore-property">
|
|
|
<div>${ _('Rows') }</div>
|
|
<div>${ _('Rows') }</div>
|
|
|
<div data-bind="text: numRows"></div>
|
|
<div data-bind="text: numRows"></div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </span>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
<!-- ko if: typeof totalSize !== 'undefined' && typeof last_modified_by === 'undefined' -->
|
|
<!-- ko if: typeof totalSize !== 'undefined' && typeof last_modified_by === 'undefined' -->
|
|
|
- <div class="metastore-property">
|
|
|
|
|
|
|
+ <span class="metastore-property">
|
|
|
<div>${ _('Total size') }</div>
|
|
<div>${ _('Total size') }</div>
|
|
|
<div data-bind="text: filesize(totalSize)"></div>
|
|
<div data-bind="text: filesize(totalSize)"></div>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ <!-- ko if: typeof transient_lastDdlTime !== 'undefined' -->
|
|
|
|
|
+ <div class="metastore-property">
|
|
|
|
|
+ ${ _('Data last updated on') }
|
|
|
|
|
+ <span data-bind="text: localeFormat(transient_lastDdlTime * 1000)"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
|
|
+ <!-- ko if: typeof last_modified_time !== 'undefined' -->
|
|
|
|
|
+ <div class="metastore-property">
|
|
|
|
|
+ ${ _('Schema last modified on') }
|
|
|
|
|
+ <span data-bind="text: localeFormat(last_modified_time*1000)"></span>
|
|
|
|
|
+ ${ _('by') }
|
|
|
|
|
+ <span data-bind="text: last_modified_by"></span>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
@@ -586,7 +584,7 @@ ${ components.menubar(is_embeddable) }
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tile">
|
|
<div class="tile">
|
|
|
- <h4 style="margin-bottom: 5px;">${ _('Columns') } <i data-bind="visible: loadingColumns" class="fa fa-spinner fa-spin" style="display: none;"></i></h4>
|
|
|
|
|
|
|
+ <h4 style="margin-bottom: 5px;">${ _('Schema') } <i data-bind="visible: loadingColumns" class="fa fa-spinner fa-spin" style="display: none;"></i></h4>
|
|
|
<!-- ko component: { name: 'catalog-entries-list', params: { catalogEntry: catalogEntry, contextPopoverEnabled: true, editableDescriptions: /true/i.test('${ has_write_access }') } } --><!-- /ko -->
|
|
<!-- ko component: { name: 'catalog-entries-list', params: { catalogEntry: catalogEntry, contextPopoverEnabled: true, editableDescriptions: /true/i.test('${ has_write_access }') } } --><!-- /ko -->
|
|
|
</div>
|
|
</div>
|
|
|
</script>
|
|
</script>
|