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

     1  define
     2  set a 1
     3  ----
     4  
     5  overlaps
     6  a-b
     7  b-c
     8  aa-ab
     9  ----
    10  true
    11  false
    12  false
    13  
    14  define
    15  set b 1
    16  ----
    17  
    18  overlaps
    19  a-b
    20  b-c
    21  ----
    22  true
    23  true
    24  
    25  define
    26  set c 1
    27  ----
    28  
    29  overlaps
    30  a-b
    31  a-c
    32  ----
    33  false
    34  true
    35  
    36  define
    37  set a 1
    38  set d 2
    39  set g 3
    40  ----
    41  
    42  overlaps
    43  b-c
    44  e-f
    45  b-c e-f
    46  b-c e-g
    47  ----
    48  false
    49  false
    50  false
    51  true
    52  
    53  define
    54  set a 1
    55  set d 2
    56  set e 3
    57  set g 4
    58  ----
    59  
    60  overlaps
    61  b-c
    62  e-f
    63  b-c e-f
    64  b-c e0-f
    65  ----
    66  false
    67  true
    68  true
    69  false
    70  
    71  define
    72  set a 1
    73  set c 2
    74  set d 3
    75  set g 4
    76  ----
    77  
    78  overlaps
    79  b-c
    80  e-f
    81  b-c e-f
    82  b-b1 e-f
    83  ----
    84  true
    85  false
    86  true
    87  false
    88  
    89  # The del-range tests are specific to the comparer.
    90  
    91  define default
    92  del-range a c
    93  del-range e g
    94  ----
    95  
    96  overlaps
    97  a-b
    98  b-c
    99  c-d
   100  c-e
   101  f-h
   102  g-h
   103  ----
   104  true
   105  true
   106  false
   107  true
   108  true
   109  false
   110  
   111  define reverse
   112  del-range d b
   113  ----
   114  
   115  overlaps
   116  c-b
   117  b-a
   118  e-d
   119  ----
   120  true
   121  false
   122  true
   123  
   124  define default
   125  set b 1
   126  ----
   127  
   128  overlaps
   129  a.RANGEDEL.2-b.RANGEDEL.72057594037927935
   130  ----
   131  false
   132  
   133  define default
   134  del-range b c
   135  ----
   136  
   137  overlaps
   138  a.RANGEDEL.2-b.RANGEDEL.72057594037927935
   139  ----
   140  false
   141  
   142  define default
   143  del-range a f
   144  del-range b c
   145  ----
   146  
   147  overlaps
   148  d.RANGEDEL.2-e.RANGEDEL.72057594037927935
   149  ----
   150  true
   151  
   152  define default
   153  range-key-set a f 1 val1
   154  range-key-set b c 2 val2
   155  ----
   156  
   157  overlaps
   158  d-e
   159  ----
   160  true
   161  
   162  define default
   163  range-key-set a c 1 val1
   164  ----
   165  
   166  overlaps
   167  a-c
   168  b-c
   169  a.RANGEDEL.2-b.RANGEDEL.72057594037927935
   170  d-e
   171  ----
   172  true
   173  true
   174  true
   175  false