github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/testdata/ingest_external (about)

     1  
     2  # Simple case.
     3  
     4  build-remote f1
     5  set a foo
     6  set b bar
     7  set c foobar
     8  ----
     9  
    10  ingest-external
    11  f1,5,a,cc
    12  ----
    13  
    14  lsm
    15  ----
    16  6:
    17    000004:[a#10,DELSIZED-cc#inf,RANGEDEL]
    18  
    19  iter
    20  first
    21  next
    22  next
    23  next
    24  ----
    25  a: (foo, .)
    26  b: (bar, .)
    27  c: (foobar, .)
    28  .
    29  
    30  # Above case but with c left out at ingestion time.
    31  
    32  reset
    33  ----
    34  
    35  build-remote f2
    36  set a foo
    37  set b bar
    38  set c foobar
    39  ----
    40  
    41  ingest-external
    42  f2,5,a,c
    43  ----
    44  
    45  lsm
    46  ----
    47  6:
    48    000004:[a#10,DELSIZED-c#inf,RANGEDEL]
    49  
    50  iter
    51  first
    52  next
    53  next
    54  next
    55  ----
    56  a: (foo, .)
    57  b: (bar, .)
    58  .
    59  .
    60  
    61  build-remote f3
    62  set c foobarbaz
    63  set d haha
    64  set e something
    65  ----
    66  
    67  build-remote f4
    68  set f foo
    69  set g foo
    70  set h foo
    71  ----
    72  
    73  # This ingestion should error out due to the overlap between file spans.
    74  
    75  ingest-external
    76  f3,10,c,f
    77  f4,10,e,h
    78  ----
    79  pebble: external sstables have overlapping ranges
    80  
    81  ingest-external
    82  f3,10,c,f
    83  f4,10,f,hh
    84  ----
    85  
    86  lsm
    87  ----
    88  6:
    89    000004:[a#10,DELSIZED-c#inf,RANGEDEL]
    90    000007:[c#11,DELSIZED-f#inf,RANGEDEL]
    91    000008:[f#12,DELSIZED-hh#inf,RANGEDEL]
    92  
    93  iter
    94  first
    95  next
    96  next
    97  next
    98  next
    99  next
   100  next
   101  next
   102  next
   103  ----
   104  a: (foo, .)
   105  b: (bar, .)
   106  c: (foobarbaz, .)
   107  d: (haha, .)
   108  e: (something, .)
   109  f: (foo, .)
   110  g: (foo, .)
   111  h: (foo, .)
   112  .
   113  
   114  compact a z
   115  ----
   116  
   117  lsm
   118  ----
   119  6:
   120    000004:[a#10,DELSIZED-c#inf,RANGEDEL]
   121    000007:[c#11,DELSIZED-f#inf,RANGEDEL]
   122    000008:[f#12,DELSIZED-hh#inf,RANGEDEL]
   123  
   124  download a j
   125  ----
   126  ok
   127  
   128  lsm
   129  ----
   130  6:
   131    000009:[a#0,SET-b#0,SET]
   132    000010:[c#0,SET-e#0,SET]
   133    000011:[f#0,SET-h#0,SET]
   134  
   135  iter
   136  first
   137  next
   138  next
   139  next
   140  next
   141  next
   142  next
   143  next
   144  next
   145  ----
   146  a: (foo, .)
   147  b: (bar, .)
   148  c: (foobarbaz, .)
   149  d: (haha, .)
   150  e: (something, .)
   151  f: (foo, .)
   152  g: (foo, .)
   153  h: (foo, .)
   154  .