diff --git a/tool/sstable.go b/tool/sstable.go index ae8f1d2d3e..0ea120d0f5 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") + format, err := r.TableFormat() + if err != nil { + fmt.Fprintf(tw, "error when retrieving format %s\n", err) + } else { + fmt.Fprintf(tw, "%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..4ce515196a 100644 Binary files a/tool/testdata/sstable_properties and b/tool/testdata/sstable_properties differ