package app import ( "fmt" "net/url" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) templ IcebergTableDetails(data dash.IcebergTableDetailsData) {

if data.MetadataError != "" {
{ data.MetadataError }
}
Data Files
if data.HasDataFileCount { { formatNumber(data.DataFileCount) } } else { - }
Total Size
if data.HasTotalSize { { formatBytes(data.TotalSizeBytes) } } else { - }
Snapshots
if data.HasSnapshotCount { { formatNumber(int64(data.SnapshotCount)) } } else { - }
Table Metadata
Table ARN { data.TableARN }
Format { data.Format }
Table Location if data.TableLocation != "" { { data.TableLocation } } else { - }
Metadata Location if data.MetadataLocation != "" { { data.MetadataLocation } } else { - }
Created if !data.CreatedAt.IsZero() { { data.CreatedAt.Format("2006-01-02 15:04") } } else { - }
Modified if !data.ModifiedAt.IsZero() { { data.ModifiedAt.Format("2006-01-02 15:04") } } else { - }
Properties
for _, prop := range data.Properties { } if len(data.Properties) == 0 { }
Key Value
{ prop.Key } { prop.Value }
No properties available.
Schema
for _, field := range data.SchemaFields { } if len(data.SchemaFields) == 0 { }
ID Name Type Required
{ fmt.Sprintf("%d", field.ID) } { field.Name } { string(field.Type) } if field.Required { Yes } else { No }
No schema available.
Partitions
for _, field := range data.PartitionFields { } if len(data.PartitionFields) == 0 { }
Name Transform Source ID Field ID
{ field.Name } { field.Transform } { fmt.Sprintf("%d", field.SourceID) } { fmt.Sprintf("%d", field.FieldID) }
No partitions defined.
Snapshot History
for _, snapshot := range data.Snapshots { } if len(data.Snapshots) == 0 { }
Snapshot ID Timestamp Operation Manifest List
{ fmt.Sprintf("%d", snapshot.SnapshotID) } if snapshot.Timestamp.IsZero() { - } else { { snapshot.Timestamp.Format("2006-01-02 15:04") } } if snapshot.Operation != "" { { snapshot.Operation } } else { - } if snapshot.ManifestList != "" { { snapshot.ManifestList } } else { - }
No snapshots available.
}