diff --git a/tool/sstable.go b/tool/sstable.go index ae8f1d2d3e..8c8b9ed1d1 100644 --- a/tool/sstable.go +++ b/tool/sstable.go @@ -310,6 +310,13 @@ func (s *sstableT) runProperties(cmd *cobra.Command, args []string) { } tw := tabwriter.NewWriter(stdout, 2, 1, 2, ' ', 0) + fmt.Fprintf(tw, "format\t\n") + format, err := r.TableFormat() + if err != nil { + fmt.Fprintf(tw, " error when retrieving format\t%s\n", err) + } else { + fmt.Fprintf(tw, " type\t%s\n", format.String()) + } fmt.Fprintf(tw, "size\t\n") fmt.Fprintf(tw, " file\t%s\n", humanize.Bytes.Int64(stat.Size())) fmt.Fprintf(tw, " data\t%s\n", humanize.Bytes.Uint64(r.Properties.DataSize)) diff --git a/tool/testdata/sstable_properties b/tool/testdata/sstable_properties index 76888870e4..c928e0ba6a 100644 Binary files a/tool/testdata/sstable_properties and b/tool/testdata/sstable_properties differ