test/command/suite/tables/array/gc/batch_add_delete_in_buffer.test
raw| 1 | table_create array TABLE_NO_KEY |
| 2 | column_create array index COLUMN_SCALAR UInt32 |
| 3 | |
| 4 | # GRN_ARRAY_GARBAGES_BUFFER_SIZE + 1 (array_header::garbages) is 6 |
| 5 | load --table array |
| 6 | [ |
| 7 | {"index": 1}, |
| 8 | {"index": 2}, |
| 9 | {"index": 3}, |
| 10 | {"index": 4}, |
| 11 | {"index": 5}, |
| 12 | {"index": 6} |
| 13 | ] |
| 14 | delete array --filter true |
| 15 | |
| 16 | load --table array |
| 17 | [ |
| 18 | {"index": 7}, |
| 19 | {"index": 8}, |
| 20 | {"index": 9}, |
| 21 | {"index": 10}, |
| 22 | {"index": 11}, |
| 23 | {"index": 12} |
| 24 | ] |
| 25 | select array |