github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/testdata/manual_compaction_range_keys (about)

     1  
     2  # Test compaction of range keys.
     3  
     4  define target-file-sizes=(1, 1, 1, 1)
     5  L0
     6    rangekey:a-c:{(#4,RANGEKEYSET,@2,foo)}
     7    a.SET.3:b
     8  L2
     9    a.SET.2:v
    10  L3
    11    a.SET.0:v
    12    b.SET.0:v
    13    rangekey:b-c:{(#1,RANGEKEYSET,@2,bar)}
    14  L3
    15    c.SET.0:v
    16  ----
    17  0.0:
    18    000004:[a#4,RANGEKEYSET-c#inf,RANGEKEYSET] seqnums:[3-4] points:[a#3,SET-a#3,SET] ranges:[a#4,RANGEKEYSET-c#inf,RANGEKEYSET]
    19  2:
    20    000005:[a#2,SET-a#2,SET] seqnums:[2-2] points:[a#2,SET-a#2,SET]
    21  3:
    22    000006:[a#0,SET-c#inf,RANGEKEYSET] seqnums:[0-1] points:[a#0,SET-b#0,SET] ranges:[b#1,RANGEKEYSET-c#inf,RANGEKEYSET]
    23    000007:[c#0,SET-c#0,SET] seqnums:[0-0] points:[c#0,SET-c#0,SET]
    24  
    25  compact a-d L0
    26  ----
    27  1:
    28    000008:[a#4,RANGEKEYSET-c#inf,RANGEKEYSET] seqnums:[3-4] points:[a#3,SET-a#3,SET] ranges:[a#4,RANGEKEYSET-c#inf,RANGEKEYSET]
    29  2:
    30    000005:[a#2,SET-a#2,SET] seqnums:[2-2] points:[a#2,SET-a#2,SET]
    31  3:
    32    000006:[a#0,SET-c#inf,RANGEKEYSET] seqnums:[0-1] points:[a#0,SET-b#0,SET] ranges:[b#1,RANGEKEYSET-c#inf,RANGEKEYSET]
    33    000007:[c#0,SET-c#0,SET] seqnums:[0-0] points:[c#0,SET-c#0,SET]
    34  
    35  compact a-d L1
    36  ----
    37  2:
    38    000009:[a#4,RANGEKEYSET-c#inf,RANGEKEYSET] seqnums:[3-4] points:[a#3,SET-a#3,SET] ranges:[a#4,RANGEKEYSET-c#inf,RANGEKEYSET]
    39  3:
    40    000006:[a#0,SET-c#inf,RANGEKEYSET] seqnums:[0-1] points:[a#0,SET-b#0,SET] ranges:[b#1,RANGEKEYSET-c#inf,RANGEKEYSET]
    41    000007:[c#0,SET-c#0,SET] seqnums:[0-0] points:[c#0,SET-c#0,SET]
    42  
    43  compact a-d L2
    44  ----
    45  3:
    46    000010:[a#4,RANGEKEYSET-b#inf,RANGEKEYSET] seqnums:[0-4] points:[a#0,SET-a#0,SET] ranges:[a#4,RANGEKEYSET-b#inf,RANGEKEYSET]
    47    000011:[b#4,RANGEKEYSET-c#inf,RANGEKEYSET] seqnums:[0-4] points:[b#0,SET-b#0,SET] ranges:[b#4,RANGEKEYSET-c#inf,RANGEKEYSET]
    48    000007:[c#0,SET-c#0,SET] seqnums:[0-0] points:[c#0,SET-c#0,SET]