File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 9
9
"context"
10
10
"fmt"
11
11
"io"
12
+ "maps"
12
13
"os"
13
14
"slices"
14
15
"strings"
@@ -318,15 +319,13 @@ func (s *sstableT) runProperties(cmd *cobra.Command, args []string) {
318
319
fmt .Fprintf (tw , "merger\t %s\n " , formatNull (props .MergerName ))
319
320
fmt .Fprintf (tw , "filter\t %s\n " , formatNull (props .FilterPolicyName ))
320
321
fmt .Fprintf (tw , "compression\t %s\n " , props .CompressionName )
322
+ if props .CompressionStats != "" {
323
+ fmt .Fprintf (tw , "compression stats\t %s\n " , props .CompressionStats )
324
+ }
321
325
fmt .Fprintf (tw , "user properties\t \n " )
322
326
fmt .Fprintf (tw , " collectors\t %s\n " , props .PropertyCollectorNames )
323
327
// Read UserProperties directly from reader.
324
- keys := make ([]string , 0 , len (r .UserProperties ))
325
- for key := range r .UserProperties {
326
- keys = append (keys , key )
327
- }
328
- slices .Sort (keys )
329
- for _ , key := range keys {
328
+ for _ , key := range slices .Sorted (maps .Keys (r .UserProperties )) {
330
329
fmt .Fprintf (tw , " %s\t %s\n " , key , r .UserProperties [key ])
331
330
}
332
331
_ = tw .Flush ()
You can’t perform that action at this time.
0 commit comments